2016-10-02 19:58:24 +08:00
|
|
|
{
|
2019-04-30 19:42:04 +08:00
|
|
|
"presets": [
|
2019-08-09 03:30:11 +08:00
|
|
|
"@babel/preset-react",
|
|
|
|
["@babel/preset-env", {
|
|
|
|
"modules": false,
|
|
|
|
"targets": {"browsers": ["last 2 versions"]}
|
|
|
|
}],
|
|
|
|
"@babel/preset-flow",
|
|
|
|
"@babel/preset-typescript"
|
2019-04-30 19:42:04 +08:00
|
|
|
],
|
|
|
|
"plugins": [
|
2019-08-09 03:30:11 +08:00
|
|
|
"babel-plugin-add-module-exports",
|
|
|
|
"@babel/plugin-proposal-numeric-separator",
|
|
|
|
"@babel/plugin-proposal-class-properties",
|
|
|
|
"@babel/plugin-proposal-object-rest-spread",
|
|
|
|
"@babel/plugin-transform-flow-comments",
|
|
|
|
"@babel/plugin-transform-async-to-generator",
|
|
|
|
"@babel/plugin-transform-runtime",
|
|
|
|
"@babel/plugin-syntax-dynamic-import"
|
2019-04-30 19:42:04 +08:00
|
|
|
]
|
2016-10-02 19:58:24 +08:00
|
|
|
}
|