Closed Fauntleroy closed 9 years ago
A repo that we can clone that reproduces this would be a big help.
Here's everything you need to reproduce. Tell me if you have any trouble:
Please prep the repo so I don't need to install any global deps, i.e. gulp should be included as a devDep it already is.
All I wanna do to repro is:
npm install && npm test
Thanks.
@thlorenz I've updated the repo and it should now work as desired.
Looks like this is a problem with specifying transforms in the browserify configuration object vs the .transform
method.
This will result in transforms running twice:
var bundler = browserify( './scripts/index.js', {
transform: ['browserify-shim']
});
This will work properly:
var bundler = browserify('./scripts/index.js');
bundler.transform('browserify-shim');
Probably related to https://github.com/thlorenz/browserify-shim/issues/88 and https://github.com/thlorenz/browserify-shim/issues/104.
I can successfully Browserify my bundle, but the resulting script always has this error:
This error occurs here. Note that there are what appear to be two calls to
browserify-shim
:I've gone over my configuration a few times, but after a couple hours of fiddling I haven't been able to figure out the right combination to fix this. I'm set up like this:
package.json:
gulpfile.js:
I'm using Node.js 0.10.29, Browserify 6.3.3, and Browserify-shim 3.8.0