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

Support for Import Maps #61325

Open
6 tasks done
harrysolovay opened this issue Mar 1, 2025 · 0 comments
Open
6 tasks done

Support for Import Maps #61325

harrysolovay opened this issue Mar 1, 2025 · 0 comments
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript

Comments

@harrysolovay
Copy link

πŸ” Search Terms

import, map, path, alias, scope

βœ… Viability Checklist

⭐ Suggestion

I'm curious to hear thoughts on introducing an importMap option in compilerOptions.

Some initial thoughts:

  • Import maps are a WICG standard.
  • They can effectively replace paths for most use cases.
  • They're supported by Deno.
  • Projects with colocated Node and Deno workspaces could leverage the same source of truth regarding imports/aliases.
  • Import maps provide the ability to configure scopes (extremely useful in my experience)

πŸ“ƒ Motivating Example

Every project that utilizes import maps.

πŸ’» Use Cases

  1. What do you want to use this for?

Simplifying my configuration in projects that contain both Node and Deno workspaces.

  1. What shortcomings exist with current approaches?

One needs to re-specify their aliases in numerous places.

  1. What workarounds are you using in the meantime?

N/A

@RyanCavanaugh RyanCavanaugh added Suggestion An idea for TypeScript Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature labels Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting More Feedback This means we'd like to hear from more people who would be helped by this feature Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants