Support import maps and bare import specifiers #43326
Labels
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
Suggestion
π Search Terms
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
As import maps are part of Chrome (as of version 89), and Firefox has given a nod of approval, it would be great if Typescript embraced this cross-package import syntax.
Import maps assume an index.html (for example) file with a script tag, e.g.:
I would suggest being able to
π Motivating Example
Now you can reference cross-package JS files seamlessly, without bundling tools, based on browser standards.
Workaround:
The path resolution Typescript provides is inadequate, and quite unhelpful.
The only fairly reliable workaround I've found is cloning the repo to a sibling folder of my project.
The text was updated successfully, but these errors were encountered: