Comment by jahewson
3 years ago
Amongst their issues is the issue of enum vs const enum. These compile to different outputs and support different behaviors. It’s not possible to compile a TS file that uses them without looking at the enum declaration to see if it’s const. It’s no longer possible to strip the types and have something that any JS bundler can understand.
That seems like a limitation that makes sense. A non-const enum would need a lot more complexity to be extensible at runtime.