tc39 / source-map

Source map specification, RFCs and new proposals.

Home Page:https://tc39.es/source-map/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Source maps and import maps

littledan opened this issue · comments

Should source maps somehow help us represent the module specifiers used to refer to things, which may indirectly reference the original source via import maps or other mechanisms? How can we differentiate between multiple candidate specifiers when they point to the same source? (This question came up at the Igalia Web Engines Hackfest.)

This sounds somewhat related to challenges with VS Code's "Go To Implementation". In the IDE when not debugging, and you right-click on an imported library method, and choose "Go To Implementation", where should the IDE navigate the user? (This gets even more complicated when libraries have a CJS, ESM, and UMD entry points in addition to import maps.)