2017-07-12 22:41:55 +08:00
|
|
|
{
|
|
|
|
"presets": [
|
|
|
|
[
|
|
|
|
"env",
|
|
|
|
{
|
|
|
|
"modules": false,
|
|
|
|
"targets": {
|
2017-10-12 19:50:48 +08:00
|
|
|
"browsers": ["last 2 versions", "ie 10"],
|
2017-07-12 22:41:55 +08:00
|
|
|
"uglify": true
|
|
|
|
},
|
2017-08-07 17:47:21 +08:00
|
|
|
"useBuiltIns": true
|
2017-07-12 22:41:55 +08:00
|
|
|
}
|
|
|
|
],
|
2017-08-07 17:47:21 +08:00
|
|
|
"react",
|
2017-10-04 15:16:17 +08:00
|
|
|
"es2015",
|
|
|
|
"flow"
|
2017-07-12 22:41:55 +08:00
|
|
|
],
|
|
|
|
"plugins": [
|
2017-10-30 21:13:36 +08:00
|
|
|
"transform-flow-strip-types",
|
2017-08-03 17:17:09 +08:00
|
|
|
"transform-object-rest-spread",
|
2017-07-12 22:41:55 +08:00
|
|
|
"syntax-dynamic-import",
|
2017-10-05 16:07:50 +08:00
|
|
|
"transform-react-jsx-source",
|
2017-07-12 22:41:55 +08:00
|
|
|
[
|
|
|
|
"transform-class-properties",
|
|
|
|
{
|
|
|
|
"spec": true
|
|
|
|
}
|
|
|
|
]
|
2017-07-13 20:11:01 +08:00
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"test": {
|
|
|
|
"plugins": ["transform-es2015-modules-commonjs"]
|
|
|
|
}
|
|
|
|
}
|
2017-07-12 22:41:55 +08:00
|
|
|
}
|