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

Fix relative path resolution between Windows partitions #75

Merged
merged 3 commits into from
Apr 6, 2018

Conversation

goto-bus-stop
Copy link
Member

@goto-bus-stop goto-bus-stop commented Apr 4, 2018

When a source file on D:\ requires something from a global browserify installation on C:\, path.relative returns the C:\whatever path. The regex here was matching C:\ as a relative path and adding ./ in front, but it should be treated as an absolute path instead. This patch adds a check so absolute paths are untouched.

Fixes #74
Fixes browserify/browserify#1825

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.

None yet

1 participant