You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 2, 2023. It is now read-only.
The current directions of import name maps are to bring these maps to other resources on the web as well, such as CSS and asset loads, using an import: URL. These URLs would be bare specifiers which would then be looked up in the package map themselves.
Node.js could in theory also support these. And where this might come in useful is all of our current use cases around fs.readFile(new URL('./x', import.meta.url)) where instead one might write fs.readFile(new URL('import:x')). Similarly this could be useful for new Worker, if this constructor were to be extended to support a URL input.
Is this something we want to consider? If so, perhaps we should explore some of these use cases further and ensure that Node is also represented in these discussions on the import name maps spec.