aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorDan Finlay <542863+danfinlay@users.noreply.github.com>2018-03-21 01:00:27 +0800
committerGitHub <noreply@github.com>2018-03-21 01:00:27 +0800
commit5c5f476ba4d0b26f6b8a71e16a8ff340566eb0b7 (patch)
tree78d49740097d29e06000c0c3024ae36923f6d6bd /gulpfile.js
parent1079d57f8cd0513e9571457b00eb3e9b44c26215 (diff)
parentfaa28490827adea52d71c5b9aa8c2af7c0f990ca (diff)
downloadtangerine-wallet-browser-5c5f476ba4d0b26f6b8a71e16a8ff340566eb0b7.tar.gz
tangerine-wallet-browser-5c5f476ba4d0b26f6b8a71e16a8ff340566eb0b7.tar.zst
tangerine-wallet-browser-5c5f476ba4d0b26f6b8a71e16a8ff340566eb0b7.zip
Merge pull request #3628 from ryan-rowland/3505_Transpile_to_ES5
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('./')))