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

Add support for the Node v6 preserve-symlinks option #1742

Merged
merged 1 commit into from Jan 31, 2018

Conversation

devongovett
Copy link
Member

When specified, symlinks are preserved when resolving modules. Specifically, the realpath call is skipped. This allows symlinked peer dependencies to work correctly. Matches the behavior of the option added in node v6.3.0: https://nodejs.org/api/cli.html#cli_preserve_symlinks. See nodejs/node#3402 for discussion around this feature in node.

When specified, symlinks are preserved when resolving modules. Specifically, the `realpath` call is skipped. This allows symlinked peer dependencies to work correctly. Matches the behavior of the option added in node v6.3.0: https://nodejs.org/api/cli.html#cli_preserve_symlinks.
@devongovett
Copy link
Member Author

@substack @feross who is maintaining browserify these days? Can someone look at this?

sullenor pushed a commit to css-modules/postcss-modules-resolve-imports that referenced this pull request Sep 5, 2017
sullenor pushed a commit to css-modules/postcss-modules-resolve-imports that referenced this pull request Sep 5, 2017
@devongovett devongovett requested a review from a user October 5, 2017 01:21
@goto-bus-stop
Copy link
Member

makes sense, thanks!

reading the node thread it seems like entry points would be realpath()ed regardless, does this patch need to do anything handle that?

@goto-bus-stop goto-bus-stop merged commit 2b9b319 into browserify:master Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants