From 5d2c424bb7cf3058c33671689b64f8a5562f0349 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Fri, 9 Nov 2018 02:08:21 +0100 Subject: [PATCH] ios: try babel polyfills --- .babelrc | 3 ++- CHANGELOG.md | 5 +++++ package.json | 1 + src/client/app/polyfills.js | 9 --------- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.babelrc b/.babelrc index 38bd35ed..44262f47 100644 --- a/.babelrc +++ b/.babelrc @@ -4,7 +4,8 @@ "targets": { "ios": "9.3", "chrome": "50" - } + }, + "useBuiltIns": "usage" }] ], "plugins": ["@babel/plugin-proposal-object-rest-spread"] diff --git a/CHANGELOG.md b/CHANGELOG.md index edcdb0a9..9a309251 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.39.7 + +- bug fixes + - iOS 9.3 compatibility + ## 0.39.6 - bug fixes diff --git a/package.json b/package.json index 3c4ff3f0..f63c5195 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "dependencies": { "@babel/core": "7.1.2", "@babel/plugin-proposal-object-rest-spread": "7.0.0", + "@babel/polyfill": "^7.0.0", "@babel/preset-env": "7.1.0", "ansi-html": "0.0.7", "babelify": "10.0.0", diff --git a/src/client/app/polyfills.js b/src/client/app/polyfills.js index 03ff70bc..923da251 100644 --- a/src/client/app/polyfills.js +++ b/src/client/app/polyfills.js @@ -1,12 +1,3 @@ -if (!Object.values) { - - Object.values = function(e){ - // @https://github.com/JoHNNyRiver/poyfillObject - return Array.prototype.map.call(Object.keys(e), function(t,r){return e[t]}) - } - -} - if (!NodeList.prototype.forEach) { NodeList.prototype.forEach = Array.prototype.forEach