My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Having problems with gulp + babelify

estevan carlos benson's photo
estevan carlos benson
·May 6, 2017

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/"));