rollup-plugin-esbuild
rollup-plugin-esbuild copied to clipboard
Enums not being inlined
ESBuild supports inlining const enums as per https://github.com/evanw/esbuild/issues/128 but plugin does not.
@egoist bumping this, it is really important for us.
This is the reason it's not supported https://github.com/evanw/esbuild/issues/128#issuecomment-999946969
💔
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.