-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Enums not being inlined #335
Comments
@egoist bumping this, it is really important for us. |
This is the reason it's not supported evanw/esbuild#128 (comment) |
💔 Will leave this open for now and I will do some investigating and see if it is possible to achieve by some other means. |
Just find this issue after making a reproduction to locate the issue, just paste my reproduction here if anyone needs this: https://stackblitz.com/edit/rollup-esbuild-ts-enum-bug?file=test.ts Any idea how we can bypass this? I am on big project while some part of my files are using const enum to provide better reading with source code. But currently this behavior is slowing down runtime by size and extra calculation. |
ESBuild supports inlining const enums as per evanw/esbuild#128 but plugin does not.
The text was updated successfully, but these errors were encountered: