From 055ef5d8fe6ccefbc4229bcb05bad2e8c5cd97d6 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Fri, 4 Nov 2016 14:39:32 -0700 Subject: [PATCH] Add babelify to gulp build --- gulpfile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 26ad0c1f8..4d4fcaeee 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,5 +1,6 @@ var watchify = require('watchify') var browserify = require('browserify') +var babelify = require('babelify') var gulp = require('gulp') var source = require('vinyl-source-stream') var buffer = require('vinyl-buffer') @@ -226,6 +227,9 @@ function bundleTask(opts) { }) var bundler = browserify(browserifyOpts) + bundler.transform(babelify.configure({ + presets: ['es2015'], + })) bundler.transform('brfs') if (opts.watch) { bundler = watchify(bundler)