Skip to content

[Question] How to prevent to compile Async and Decorator #6747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
okian opened this issue Jan 30, 2016 · 1 comment
Closed

[Question] How to prevent to compile Async and Decorator #6747

okian opened this issue Jan 30, 2016 · 1 comment

Comments

@okian
Copy link

okian commented Jan 30, 2016

I'm using babel for transpiling like:
TSX -> ES6 -> Babel + webpack -> ES5
and I set noEmitHelpers to true in tsconfig.json, because babel handle it with single global helper instead of multiple helpers in each file but it doesn't work with Acyncs and Decorators and after compile i'm getting
__decorate(...)
and

__awaiter(this, void 0, Promise, function* () {
        ...
        });

How can I prevent tsc to compile Asyncs and Decorators and let babel handle them?

@yortus
Copy link
Contributor

yortus commented Jan 30, 2016

This is not yet possible, unfortunately. See #5361. Maybe add your voice over there to bump the issue.

@okian okian closed this as completed Jan 31, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants