2016-08-31 15:15:12 +01:00
|
|
|
{
|
2017-05-03 01:04:16 +01:00
|
|
|
"presets": [
|
|
|
|
"react",
|
|
|
|
[
|
|
|
|
"env",
|
|
|
|
{
|
2018-03-18 14:14:38 +00:00
|
|
|
"debug": true,
|
|
|
|
"exclude": ["transform-async-to-generator", "transform-regenerator"],
|
2017-05-03 01:04:16 +01:00
|
|
|
"loose": true,
|
2017-05-14 11:59:40 +01:00
|
|
|
"modules": false,
|
2017-05-06 20:25:26 +01:00
|
|
|
"targets": {
|
|
|
|
"browsers": ["last 2 versions", "IE >= 11", "iOS >= 9"]
|
|
|
|
}
|
2017-05-03 01:04:16 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
2016-11-13 12:13:36 +00:00
|
|
|
"plugins": [
|
2017-05-07 01:42:38 +01:00
|
|
|
"syntax-dynamic-import",
|
2017-06-14 12:42:00 +01:00
|
|
|
["transform-object-rest-spread", { "useBuiltIns": true }],
|
2017-06-23 18:36:54 +01:00
|
|
|
"transform-decorators-legacy",
|
2017-05-12 13:44:10 +01:00
|
|
|
"transform-class-properties",
|
2017-05-03 01:04:16 +01:00
|
|
|
[
|
|
|
|
"react-intl",
|
|
|
|
{
|
|
|
|
"messagesDir": "./build/messages"
|
|
|
|
}
|
2017-07-14 19:30:12 +01:00
|
|
|
],
|
|
|
|
"preval"
|
2017-05-06 03:18:23 +01:00
|
|
|
],
|
|
|
|
"env": {
|
|
|
|
"development": {
|
|
|
|
"plugins": [
|
|
|
|
"transform-react-jsx-source",
|
|
|
|
"transform-react-jsx-self"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"production": {
|
|
|
|
"plugins": [
|
2017-05-18 18:14:58 +01:00
|
|
|
"lodash",
|
2017-05-19 01:42:21 +01:00
|
|
|
[
|
|
|
|
"transform-react-remove-prop-types",
|
|
|
|
{
|
|
|
|
"mode": "remove",
|
|
|
|
"removeImport": true,
|
|
|
|
"additionalLibraries": [
|
|
|
|
"react-immutable-proptypes"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2017-07-09 16:34:05 +01:00
|
|
|
"transform-react-inline-elements",
|
2017-05-18 18:14:58 +01:00
|
|
|
[
|
|
|
|
"transform-runtime",
|
|
|
|
{
|
|
|
|
"helpers": true,
|
|
|
|
"polyfill": false,
|
|
|
|
"regenerator": false
|
|
|
|
}
|
|
|
|
]
|
2017-05-06 03:18:23 +01:00
|
|
|
]
|
2017-05-14 11:59:40 +01:00
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"plugins": [
|
|
|
|
"transform-es2015-modules-commonjs"
|
|
|
|
]
|
2017-05-06 03:18:23 +01:00
|
|
|
}
|
|
|
|
}
|
2016-08-31 15:15:12 +01:00
|
|
|
}
|