3 ms·
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
by a_humean 5y ago
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.
- leodriesch 5y agoI'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 https://github.com/evanw/esbuild/issues/128