Hacker News new | ask | show | jobs
by antihero 1608 days ago
esbuild seems to support enums fine
1 comments

It doesn't support one variant of them, const enums for example. That ties you to tsc emit. Its pretty clear that if the tsc team could they would remove enums and favour literal unions.
I've just looked this up and it seems to support `const enum` just fine[0]. I remember Babel not being able to process `const enum`, since it goes across module boundaries and Babel does not.

[0]: https://github.com/evanw/esbuild/issues/128