-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Decorators always transformed regardless of target #18713
Comments
duplicate of #16882 |
So I need to wait for the new decorators proposal to be implemented? There's a legacy decorators Babel transform I intend to use here. I don't think it would break anything if you just output the decorators as they appear in the source, for esnext. |
yes
We hope the roll-out will be coordinated with the Angular team to make sure the decorators can handle both versions of the proposal so only user-defined decorators would need to change.
It is not only the transforms, the decorator implementation as it stands today can not be labeled |
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed. |
TypeScript Version: 2.4.0 / nightly (2.5.0-dev.201xxxxx)
2.6.0-dev.20170922
Code
tsconfig.json
Expected behavior:
Decorator is emitted as-is because target is
esnext
.Actual behavior:
Decorator is transformed to
__decorate
call.I want to let all of the ECMAScript features be transpiled by Babel.
The text was updated successfully, but these errors were encountered: