Update Babel config

This commit is contained in:
Pig Fang 2018-07-30 09:45:15 +08:00
parent f88096a15f
commit 7072481f90

View File

@ -1,9 +1,6 @@
{
"presets": [
["@babel/env", {
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
},
"modules": false,
"useBuiltIns": "usage"
}]
@ -15,7 +12,10 @@
"env": {
"test": {
"presets": [
["@babel/env", { "targets": { "node": "current" } }]
["@babel/env", {
"targets": { "node": "current" },
"ignoreBrowserslistConfig": true
}]
]
}
}