Closed untoldone closed 9 years ago
Please create a repo we can run via git clone ${repo} && npm install && npm test
to reproduce this
Here you go:
git clone https://github.com/untoldone/browserify-debug.git && cd browserify-debug && npm install && npm test
Also reproduced with node v0.12.7
Sorry, no ideas from me
wow ... my bad here ... notice the double wrapped array passed to transform. Probably a copy-paste error at some point.
Changing the transform section from:
"transform": [
[
"babelify",
"browserify-shim"
]
]
to:
"transform": [
"babelify",
"browserify-shim"
]
fixed this.
@untoldone wow that was hard to catch. Maybe browserify could be improved to detect these invalid configurations. Worth filing an issue over there to ask and possibly provide a PR ;)
The following
package.json
where
index.js
is an empty fileproduces the following:
when running
./node_modules/browserify/bin/cmd.js . -o bundle.js
If
browserify-shim
is removed from the transform, the issue is removed.I'm running node v0.10.26