feature request: Enabling typescript isolated modules #212835
Labels
engineering
VS Code - Build / issue tracking / etc.
feature-request
Request for new features or functionality
wont-fix
Milestone
Related #160416
For migrating towards ESM in VSCode, it seems the tsconfig isolatedModules option could be useful, ensuring that imports are compatible with ESM.
For example, this typescript code transpiled to javascript would cause a runtime error because of the
someType
export:The
isolatedModules
rule would enforce a type only import forsomeType
:Enabling the
isolatedModules
tsconfig option in VSCode, it seems these files would need to adjusted:The text was updated successfully, but these errors were encountered: