Add babelify to gulp build

feature/default_network_editable
Dan Finlay 8 years ago
parent bc623bbe34
commit 055ef5d8fe
  1. 4
      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)

Loading…
Cancel
Save