Skip to content

Adding basedir to fix node resolver - #154

Merged
goto-bus-stop merged 3 commits into
browserify:masterfrom
csabascript:fix-node-resolver
Nov 13, 2018
Merged

goto-bus-stop merged 3 commits into
browserify:masterfrom
csabascript:fix-node-resolver

Conversation

@csabascript

@csabascript csabascript commented Nov 1, 2018 •

Copy link
Copy Markdown
Contributor

in case you use node-resolve instead of the default browser-resolve the visitor fails as it can't find the required relative file from the currently visited, as the basedir is not set.

@goto-bus-stop

Copy link
Copy Markdown
Member

This seems like a good idea. Could you add a test?

@csabascript

Copy link
Copy Markdown
Contributor Author

Thanks for the quick reply. Added some tests, please advise if you had something else in mind.

@csabascript

Copy link
Copy Markdown
Contributor Author

@goto-bus-stop thoughts?

@goto-bus-stop goto-bus-stop left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@goto-bus-stop
goto-bus-stop merged commit 230d988 into browserify:master Nov 13, 2018
@goto-bus-stop

Copy link
Copy Markdown
Member

📦 6.2.0
thanks!

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.

2 participants