Typescript const enum not inlined #2624
Unanswered
hummingly
asked this question in
Troubleshooting
Replies: 1 comment
-
Thanks for the bump and following up in that issue. posted a response there: #3130 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dependencies:
When I build my project with
npx snowpack build
the const enum is not inlined but instead becomes a runtime object which should only happen for regular enums. This happens whether I use the TypeScript plugin or not!Building the JavaScript files with
npx tsc
produces the correct code.Updating dependencies did not help, so I think it must be an issue with esbuild.
Beta Was this translation helpful? Give feedback.
All reactions