Having problems with gulp + babelify
I am working on my gulp skills. I am attempting to use babelify with browserify. So I am using a transform to take a stream from browserify and run it through babel. It does not work. I am not using the transform correctly.
Suggestions?
return browserify("./" + folder.dev + "js/script.js")
.transform("babelify", {
presets: ["es2015"]
})
.bundle()
.pipe(source("bundle.js"))
.pipe(gulp.dest(folder.prod + "js/"));