4 ms·
Esbuild works fine and is also much faster than TSC. Also TS enums are flawed: https://blog.logrocket.com/why-typescript-enums-suck/ https://blog.logrocket.com
by arbol 3y ago
Esbuild works fine and is also much faster than TSC.
Also TS enums are flawed: https://blog.logrocket.com/why-typescript-enums-suck/ https://blog.logrocket.com/why-typescript-enums-suck/
- krona 3y agoNot that I care, but from your article: > Enums in TypeScript are a very useful addition to the JavaScript language when used properly. So, just like any language feature.
- JuanPosadas 3y ago> enums flawed I like Typescript enums generally, my only complaint is that they are kept in the final build as big objects, especially in the scenario where you don't enumerate them. I use a replace function with terser to replace them with inlined constants to make my fine build smaller.
- NoahKAndrews 3y agoThat's what `const enum` is for!