Skip to content
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

Open
panoply opened this issue Apr 16, 2022 · 4 comments
Open

Enums not being inlined #335

panoply opened this issue Apr 16, 2022 · 4 comments

Comments

@panoply
Copy link

panoply commented Apr 16, 2022

ESBuild supports inlining const enums as per evanw/esbuild#128 but plugin does not.

@panoply
Copy link
Author

panoply commented Jun 10, 2022

@egoist bumping this, it is really important for us.

@egoist
Copy link
Owner

egoist commented Jun 10, 2022

This is the reason it's not supported evanw/esbuild#128 (comment)

@panoply
Copy link
Author

panoply commented Jun 10, 2022

💔

Will leave this open for now and I will do some investigating and see if it is possible to achieve by some other means.

@Mister-Hope
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants