2017-11-06 16:48:53 +08:00
|
|
|
{
|
|
|
|
"presets": [
|
2018-07-29 15:31:54 +08:00
|
|
|
["@babel/env", {
|
2018-07-27 09:53:14 +08:00
|
|
|
"modules": false,
|
2018-07-30 17:44:18 +08:00
|
|
|
"useBuiltIns": false,
|
|
|
|
"loose": true
|
2017-11-06 16:48:53 +08:00
|
|
|
}]
|
2017-12-24 10:54:00 +08:00
|
|
|
],
|
2017-12-24 11:40:15 +08:00
|
|
|
"plugins": [
|
2018-07-29 15:31:54 +08:00
|
|
|
"@babel/syntax-dynamic-import",
|
2018-07-30 17:44:18 +08:00
|
|
|
"@babel/proposal-optional-catch-binding",
|
|
|
|
["@babel/plugin-transform-runtime", {
|
|
|
|
"helpers": true,
|
|
|
|
"polyfill": false,
|
|
|
|
"regenerator": true,
|
|
|
|
"moduleName": "@babel/runtime"
|
|
|
|
}]
|
2017-12-24 11:40:15 +08:00
|
|
|
],
|
2017-12-24 10:54:00 +08:00
|
|
|
"env": {
|
|
|
|
"test": {
|
2018-07-29 15:31:54 +08:00
|
|
|
"presets": [
|
2018-07-30 09:45:15 +08:00
|
|
|
["@babel/env", {
|
|
|
|
"targets": { "node": "current" },
|
|
|
|
"ignoreBrowserslistConfig": true
|
|
|
|
}]
|
2018-07-31 22:58:35 +08:00
|
|
|
],
|
|
|
|
"plugins": [
|
|
|
|
"dynamic-import-node"
|
2017-12-24 10:54:00 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2017-11-06 16:48:53 +08:00
|
|
|
}
|