mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add babelify to gulp build
This commit is contained in:
parent
bc623bbe34
commit
055ef5d8fe
@ -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…
Reference in New Issue
Block a user