diff options
author | Thomas <tmashuang@gmail.com> | 2018-03-22 03:25:41 +0800 |
---|---|---|
committer | Thomas <tmashuang@gmail.com> | 2018-03-22 03:25:41 +0800 |
commit | d646f377416ea6bfcd7682d21e011be5fa65cd3f (patch) | |
tree | dd5a1116920bc73738dcc1fefcc649927230a369 /gulpfile.js | |
parent | 6306c7b1901fa831e25ddd29607618122f805749 (diff) | |
parent | 072dd7ea2f7ce189b551b9fc8fd8e58aaaec4158 (diff) | |
download | tangerine-wallet-browser-d646f377416ea6bfcd7682d21e011be5fa65cd3f.tar.gz tangerine-wallet-browser-d646f377416ea6bfcd7682d21e011be5fa65cd3f.tar.zst tangerine-wallet-browser-d646f377416ea6bfcd7682d21e011be5fa65cd3f.zip |
Merge branch 'master' into selenium-e2e
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js index adfb148a9..dbbb1e4ff 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -408,7 +408,11 @@ function bundleTask(opts) { .pipe(gulpif(debug, sourcemaps.init({ loadMaps: true }))) // Minification .pipe(gulpif(opts.isBuild, uglify({ - mangle: { reserved: [ 'MetamaskInpageProvider' ] }, + mangle: { reserved: [ 'MetamaskInpageProvider' ] }, + }))) + // Transpile to ES5 + .pipe(gulpif(opts.isBuild, babel({ + presets: ['env'] }))) // writes .map file .pipe(gulpif(debug, sourcemaps.write('./'))) |