2 ms·
> It's true that enums are harder to support for alternative compilers. As long as it is supported — and at least esbuild does, who cares (as a user). Should I
by oefrha 5y ago
> It's true that enums are harder to support for alternative compilers.
As long as it is supported — and at least esbuild does, who cares (as a user). Should I start avoiding every JS feature that is hard to implement in alternative JS runtimes?
- jannes 5y agoI don't know why you should care if it doesn't affect you. At least TypeScript cares enough to have added the `isolatedModules` and the `preserveValueImports` flags: https://www.typescriptlang.org/tsconfig#isolatedModules https://www.typescriptlang.org/tsconfig#isolatedModules https://www.typescriptlang.org/tsconfig#preserveValueImports https://www.typescriptlang.org/tsconfig#preserveValueImports