Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source maps and import maps #46

Open
littledan opened this issue Jun 7, 2023 · 2 comments
Open

Source maps and import maps #46

littledan opened this issue Jun 7, 2023 · 2 comments

Comments

@littledan
Copy link
Member

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.)

@justingrant
Copy link

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.)

@justingrant
Copy link

Related: microsoft/TypeScript#53723

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants