Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

esbuild seems to support enums fine


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: