-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Const enums are preserved when using transpileModule #5243
Comments
this behavior is by design. More specifically in
|
Is there a way then to pass |
If multiple files are compiled at once how it is different from normal compilation? You can use minimal compiler sample from the Wiki to see how it can be achieved using compiler API |
It seems that using
tsc
from command line and callingts.transpileModule
in node provides different results: transpileModule preserves const enums. Whole reproduction source can be found here: https://github.com/mbardauskas/transpile-reprofile enums.d.ts:
file foo.ts:
Using typescript transpileModule to compile file source
Output from tsc:
Output from transpileModule:
The text was updated successfully, but these errors were encountered: