add babel polyfill

pull/9/head
unknown 2018-10-29 19:23:37 -04:00
parent 872d3ca292
commit bc901a9f9e
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,11 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
"presets": [
[
"@babel/preset-env", {
"useBuiltIns": "usage"
}
],
"@babel/preset-react"
],
"plugins": ["@babel/plugin-proposal-object-rest-spread"],
}

View File

@ -22,6 +22,7 @@
"devDependencies": {
"@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",
"@babel/preset-react": "^7.0.0",
"@sailshq/eslint": "^4.19.3",