aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorMark Stacey <markjstacey@gmail.com>2019-07-19 05:17:20 +0800
committerGitHub <noreply@github.com>2019-07-19 05:17:20 +0800
commit2a7278eb7eb4c1895c5beebda2a0ea1e80bc4037 (patch)
treef485220221d06e99a0fa026a1fb07ec732d5c639 /package.json
parent7357f011c3ff6580480bcc520ce4127667c412b7 (diff)
downloadtangerine-wallet-browser-2a7278eb7eb4c1895c5beebda2a0ea1e80bc4037.tar.gz
tangerine-wallet-browser-2a7278eb7eb4c1895c5beebda2a0ea1e80bc4037.tar.zst
tangerine-wallet-browser-2a7278eb7eb4c1895c5beebda2a0ea1e80bc4037.zip
Remove Babel transformations for older browser versions (#6812)
The Babel config had previously supported all browsers with greater than 0.25% global usage (according to `browserlist`). This resulted in `babel-preset-env` including plugins sufficient to support the following minimum browser versions: ``` { "chrome": "49", "android": "4.4", "edge": "16", "firefox": "52", "ios": "9.3", "safari": "11" } ``` Instead, the babel config now explicitly supports chrome >= 58 and firefox >= 53. Chrome and Firefox are the only browsers we currently publish to, and these were the minimum versions with no additional Babel transformations. The minimum browser versions we support should be re-evaluated later, when we have added tests and documentation. The plugin 'transform-async-to-generator' has also been removed. It was used to translate async/await, but our browser targets all support async/await. Removing some of these transformations exposed bugs in `uglify-es` that only presented themselves in the production build. `gulp-uglify-es` has been updated to a version that uses `terser` instead of `uglify-es`, which has resolved these issues. Relates to #6805
Diffstat (limited to 'package.json')
-rw-r--r--package.json3
1 files changed, 1 insertions, 2 deletions
diff --git a/package.json b/package.json
index 359f0001b..0cbd873e1 100644
--- a/package.json
+++ b/package.json
@@ -175,7 +175,6 @@
"addons-linter": "^1.10.0",
"babel-core": "^6.26.3",
"babel-eslint": "^8.0.0",
- "babel-plugin-transform-async-to-generator": "^6.24.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.22.0",
"babel-plugin-transform-runtime": "^6.23.0",
@@ -223,7 +222,7 @@
"gulp-sourcemaps": "^2.6.0",
"gulp-stylefmt": "^1.1.0",
"gulp-stylelint": "^7.0.0",
- "gulp-uglify-es": "^1.0.1",
+ "gulp-uglify-es": "^1.0.4",
"gulp-util": "^3.0.7",
"gulp-watch": "^5.0.1",
"gulp-zip": "^4.0.0",