aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorRyan Rowland <ryan.w.rowland@gmail.com>2018-03-20 13:43:13 +0800
committerRyan Rowland <ryan.w.rowland@gmail.com>2018-03-20 14:11:48 +0800
commitfaa28490827adea52d71c5b9aa8c2af7c0f990ca (patch)
tree02f682424217c3b16c2d616847a101c5686b713a /gulpfile.js
parent424e98f6a896df6a848a92ef318464abc505d83d (diff)
downloadtangerine-wallet-browser-faa28490827adea52d71c5b9aa8c2af7c0f990ca.tar
tangerine-wallet-browser-faa28490827adea52d71c5b9aa8c2af7c0f990ca.tar.gz
tangerine-wallet-browser-faa28490827adea52d71c5b9aa8c2af7c0f990ca.tar.bz2
tangerine-wallet-browser-faa28490827adea52d71c5b9aa8c2af7c0f990ca.tar.lz
tangerine-wallet-browser-faa28490827adea52d71c5b9aa8c2af7c0f990ca.tar.xz
tangerine-wallet-browser-faa28490827adea52d71c5b9aa8c2af7c0f990ca.tar.zst
tangerine-wallet-browser-faa28490827adea52d71c5b9aa8c2af7c0f990ca.zip
Issue 3505 | Transpile to ES5
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js6
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('./')))