ios: try babel polyfills
This commit is contained in:
parent
40f8929321
commit
5d2c424bb7
4 changed files with 8 additions and 10 deletions
3
.babelrc
3
.babelrc
|
|
@ -4,7 +4,8 @@
|
|||
"targets": {
|
||||
"ios": "9.3",
|
||||
"chrome": "50"
|
||||
}
|
||||
},
|
||||
"useBuiltIns": "usage"
|
||||
}]
|
||||
],
|
||||
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## 0.39.7
|
||||
|
||||
- bug fixes
|
||||
- iOS 9.3 compatibility
|
||||
|
||||
## 0.39.6
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue