You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.6.2
Code
I like Typescript for all its advertised advantages and specially, it is a superset for ESNext javascript.
But I am facing one issue in the transpiled code.
I would like you to add an option to preserve original decorators in the emitted code.
Say I have the following class
Greeter
ingreeter.ts
:But how to keep class and function decorators in the output and not introduce __decorate code?
Expected behavior:
I want to get this
greeter.js
output (which is correct ESNext syntax when experimental decorator is enabled, and it can be consumed by babel):Actual behavior:
But currently I get this output using
tsc greeter.ts --target ESNext
(which is good for the general case):The text was updated successfully, but these errors were encountered: