Open latin-1 opened 1 month ago
Why you need it here? Currently we work only with paths, schemas support implemented in webpack
I think this would better align with Node.js behavior. AFAICT import
in Node.js accepts file URLs.
const url = import.meta.resolve("./some-module.mjs");
// "file:///path/to/some-module.mjs"
await import(url);
Feel free to send a PR https://github.com/webpack/enhanced-resolve/blob/main/lib/Resolver.js#L729, just check it is a scheme URL and remove it before parseIdentifier