2018-10-20 20:32:02 +08:00
|
|
|
{
|
|
|
|
"presets": [
|
|
|
|
[
|
|
|
|
"@babel/preset-env",
|
|
|
|
{
|
2018-10-21 15:40:18 +08:00
|
|
|
"modules": false,
|
|
|
|
"useBuiltIns": "usage",
|
|
|
|
"targets": {
|
|
|
|
"browsers": [">0.25%", "not ie 11", "not op_mini all"]
|
|
|
|
}
|
2018-10-20 20:32:02 +08:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"@babel/preset-react"
|
|
|
|
],
|
|
|
|
"plugins": [
|
|
|
|
"@babel/plugin-syntax-dynamic-import",
|
|
|
|
"@babel/plugin-syntax-import-meta",
|
|
|
|
"@babel/plugin-proposal-class-properties",
|
|
|
|
"@babel/plugin-proposal-json-strings",
|
|
|
|
"@babel/plugin-proposal-export-namespace-from",
|
|
|
|
"@babel/plugin-proposal-export-default-from",
|
|
|
|
"@babel/plugin-proposal-do-expressions"
|
|
|
|
],
|
|
|
|
"env": {
|
2018-10-30 15:16:42 +08:00
|
|
|
"//development": {
|
2018-10-20 20:32:02 +08:00
|
|
|
"plugins": [
|
|
|
|
"react-hot-loader/babel"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|