We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const resolve = require("enhanced-resolve"); resolve.sync("file:///path/to/project", "module"); resolve.sync("file:///path/to/project", "file:///path/to/module");
The text was updated successfully, but these errors were encountered:
Why you need it here? Currently we work only with paths, schemas support implemented in webpack
Sorry, something went wrong.
I think this would better align with Node.js behavior. AFAICT import in Node.js accepts file URLs.
import
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
parseIdentifier
No branches or pull requests
The text was updated successfully, but these errors were encountered: