From faa28490827adea52d71c5b9aa8c2af7c0f990ca Mon Sep 17 00:00:00 2001 From: Ryan Rowland Date: Mon, 19 Mar 2018 22:43:13 -0700 Subject: Issue 3505 | Transpile to ES5 --- gulpfile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gulpfile.js') 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('./'))) -- cgit v1.2.3