node icon indicating copy to clipboard operation
node copied to clipboard

Add support for dynamic import maps

Open yoavweiss opened this issue 1 year ago • 2 comments

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 avatar Sep 05 '24 06:09 yoavweiss

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 avatar Sep 06 '24 14:09 benjamingr

There is https://github.com/nodejs/node/pull/50590 which has stalled for some time

joyeecheung avatar Sep 23 '24 14:09 joyeecheung

There has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the https://github.com/nodejs/node/labels/never-stale label or close this issue if it should be closed. If not, the issue will be automatically closed 6 months after the last non-automated comment. For more information on how the project manages feature requests, please consult the feature request management document.

github-actions[bot] avatar Apr 07 '25 01:04 github-actions[bot]

There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.

For more information on how the project manages feature requests, please consult the feature request management document.

github-actions[bot] avatar May 07 '25 01:05 github-actions[bot]