|
|
|
|
|
by oefrha
1608 days 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? |
|
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#preserveValueImports