Open ledsun opened 6 years ago
Can confirm this happens with
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/gulp-browserify/-/gulp-browserify-0.5.1.tgz",
"integrity": "sha1-ggEIrCVUqVStuL4X0jlYsMBL4IM=",
"dev": true,
"requires": {
"browserify": "3.46.1",
"browserify-shim": "2.0.10",
"gulp-util": "2.2.20",
"readable-stream": "1.1.14",
"through2": "0.4.2"
},
and node 8.9.0 and 8.2.1 as well. very frustrating!
oh
NOTE: THIS PLUGIN IS NO LONGER MAINTAINED , checkout gulp-bro for a similar plugin, or the recipes by gulp team for reference on using browserify with gulp.
This confused the crap out of me too, except it left a very unhelpful esprima backtrace. Shoulda checked the versions.
Error information
I found a parse error when I convert the next code by the gulp-browserify.
The error messages are:
Run this code on the node v8.2.1 and it succeeds.
And the browserify v14.4.0 can convert this code.
To reproduce
gulpfile.js
package.json