ForbesLindesay / browserify-middleware

express middleware for browserify, done right
http://browserify.org
MIT License
381 stars 66 forks source link

options.noParse is being ignored #8

Closed haimschindler closed 11 years ago

haimschindler commented 11 years ago

in nodejs app.js I define:

app.get('/bundle.js', browserify('main.js', {noParse: ['jquery']}));

but noParse is being ignored

I debugged the code. I fount that in "send.js" file, in function "bundleFile" there is a call to "browserify" function but "browserify" do nothing with the second parameter given by "bundleFile"

I have changed the content of "bundleFile" to this:

var opts = { entries: [ path ], noParse: options.noParse };
return browserify(opts);

then it works. maybe more need to be changed in other places for other cases