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 dynamic import maps #54784

Open
yoavweiss opened this issue Sep 5, 2024 · 1 comment
Open

Add support for dynamic import maps #54784

yoavweiss opened this issue Sep 5, 2024 · 1 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

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
@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
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

3 participants