ios: try babel polyfills

This commit is contained in:
jean-emmanuel 2018-11-09 02:08:21 +01:00
parent 40f8929321
commit 5d2c424bb7
4 changed files with 8 additions and 10 deletions

View file

@ -4,7 +4,8 @@
"targets": {
"ios": "9.3",
"chrome": "50"
}
},
"useBuiltIns": "usage"
}]
],
"plugins": ["@babel/plugin-proposal-object-rest-spread"]

View file

@ -1,5 +1,10 @@
# Changelog
## 0.39.7
- bug fixes
- iOS 9.3 compatibility
## 0.39.6
- bug fixes

View file

@ -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",

View file

@ -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