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

Skip absolute path specifiers #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrewiggins
Copy link
Contributor

When passing a specifier such as /module.js to the resolve, resolve always tries to find the module at the root of the file system, not the root of the basedir. So I propose the node-resolve plugin skips absolute path specifiers since I think that trying to resolve for node_modules at the root of the file system is not very useful.

Since node-resolve will just pass along any specifiers it can't find, the only real behavior change that that I'm aware of is that node-resolve will no longer warn on absolute path specifiers when using the default logger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant