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
--require/-r seems to be broken when used with pipe input after browserify v4 #1019
Comments
This was referenced Dec 10, 2014
👍 Can anyone confirm this? |
Hello? 😛 |
I'm also seeing this on Browserify 8. |
Scratch that, this appears to just be a path issue. The following works as expected, with # lib/common.js
var robot = require('./lib/robot'); # lib/beep.js
var robot = require('./lib/robot'); $ browserify -r ./lib/robot.js -o built/common.js - < lib/common.js
$ browserify -x ./lib/robot.js -o built/beep.js - < lib/beep.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is a repo with branches browserify_4, _5, _6, _7 to demonstrate:
https://github.com/cymen/browserify-pipe-issue/
It looks like it is the require that is breaking. For browserify v4, it works:
https://github.com/cymen/browserify-pipe-issue/blob/browserify_4/built/common.js
But after v4, the require for
./robot.js
used in browserifying common.js does this (does not work):https://github.com/cymen/browserify-pipe-issue/blob/browserify_5/built/common.js
https://github.com/cymen/browserify-pipe-issue/blob/browserify_6/built/common.js
https://github.com/cymen/browserify-pipe-issue/blob/browserify_7/built/common.js
I have the build with pipes approach in the package.json which is:
The text was updated successfully, but these errors were encountered: