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

Add support for multiple import maps #54784

Open
yoavweiss opened this issue Sep 5, 2024 · 2 comments
Open

Add support for multiple import maps #54784

yoavweiss opened this issue Sep 5, 2024 · 2 comments
Labels
feature request Issues that request new features to be added to Node.js. loaders Issues and PRs related to ES module loaders web-standards Issues and PRs related to Web APIs

Comments

@yoavweiss
Copy link

What is the problem this feature will solve?

Import maps currently have to load before any ES module and there can only be a single import map per document. That makes them fragile and potentially slow to use in real-life scenarios: Any module that loads before them breaks the entire app, and in apps with many modules the become a large blocking resource, as the entire map for all possible modules needs to load first.

What is the feature you are proposing to solve the problem?

There's an HTML PR proposal to enable multiple import maps per document, by merging them in a consistent and deterministic way.

I'd appreciate y'all's opinions.

What alternatives have you considered?

No response

@yoavweiss yoavweiss added the feature request Issues that request new features to be added to Node.js. label Sep 5, 2024
@github-project-automation github-project-automation bot moved this to Awaiting Triage in Node.js feature requests Sep 5, 2024
@RedYetiDev RedYetiDev added the loaders Issues and PRs related to ES module loaders label Sep 5, 2024
@benjamingr
Copy link
Member

We haven't even added regular import maps, there is a feature request somewhere but users/core doesn't seem to prioritize it in a Node.js setting since we don't have many of the problems browsers have and we have a lot more tools for resolution already.

cc @nodejs/loaders @nodejs/web-standards

@benjamingr benjamingr added the web-standards Issues and PRs related to Web APIs label Sep 6, 2024
@joyeecheung
Copy link
Member

There is #50590 which has stalled for some time

@yoavweiss yoavweiss changed the title Add support for dynamic import maps Add support for multiple import maps Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js. loaders Issues and PRs related to ES module loaders web-standards Issues and PRs related to Web APIs
Projects
Status: Awaiting Triage
Development

No branches or pull requests

4 participants