Preserve path for individual file requires #256

wants to merge 2 commits into


None yet

2 participants


Was having an issue where if I did something like:

browserify( { require : [ './lib/x.js', './lib/y.js' ] } );

they would get defined as '/x.js' instead of './lib/x.js'. Wrote a quick patch that preserves the requested path.


This issue no longer applies in v2 because the paths are computed at bundle time instead of at run time and exported .require() definitions don't get but through commondir() as they did in v1.

@substack substack closed this Feb 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment