I'm stuck on trying to get browserify/vueify to output ES2015 with Gulp. I did what the documentation said which is:
npm install\ babel-core\ babel-preset-es2015\ babel-runtime\ babel-plugin-transform-runtime\ --save-dev
And I have this in my gulpfile:
gulp.task('browserify', function() {
browserify('./js/entry.js')
.transform(vueify)
.bundle()
.pipe(fs.createWriteStream('./js/bundle.js'))
});
The documentation states:
Support ES2015 by default.
Am I suppose to require or import all the npm modules in my gulpfile or something? What am I missing here? Browserify works fine but as soon as I use ES2015 gulp errors out on me with:
SyntaxError: Unexpected token (32:6) while parsing...
entry.js- Jeff