2016-10-20 04:14:26 +03:00
|
|
|
{
|
|
|
|
"presets": [
|
2016-12-12 12:56:48 +02:00
|
|
|
"react",
|
|
|
|
["env", {
|
2017-02-20 18:15:36 +02:00
|
|
|
"modules": false,
|
2016-12-12 12:56:48 +02:00
|
|
|
"targets": {
|
|
|
|
"browsers": [
|
|
|
|
"last 2 versions"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}]
|
2016-10-20 04:14:26 +03:00
|
|
|
],
|
|
|
|
"plugins": [
|
2017-03-01 20:57:50 +02:00
|
|
|
["inline-react-svg", {
|
|
|
|
"ignorePattern": "assets/fonts"
|
|
|
|
}],
|
2017-02-07 17:52:24 +02:00
|
|
|
"transform-class-properties",
|
2016-10-20 04:14:26 +03:00
|
|
|
["transform-object-rest-spread", {
|
|
|
|
"useBuiltIns": true
|
|
|
|
}],
|
2017-02-07 17:52:24 +02:00
|
|
|
["transform-react-jsx", {
|
|
|
|
"useBuiltIns": true
|
|
|
|
}],
|
|
|
|
"transform-exponentiation-operator"
|
2016-10-20 04:14:26 +03:00
|
|
|
],
|
|
|
|
"env": {
|
2017-02-07 17:52:24 +02:00
|
|
|
"development": {
|
2016-10-20 04:14:26 +03:00
|
|
|
"plugins": [
|
2017-02-07 17:52:24 +02:00
|
|
|
"transform-react-jsx-source",
|
|
|
|
"transform-react-jsx-self"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"presets": [
|
|
|
|
["env", {
|
|
|
|
"targets": {
|
|
|
|
"node": "current"
|
2016-10-20 04:14:26 +03:00
|
|
|
}
|
2017-02-07 17:52:24 +02:00
|
|
|
}]
|
|
|
|
],
|
|
|
|
"plugins": [
|
2016-12-14 00:09:04 +02:00
|
|
|
["babel-plugin-webpack-alias", {
|
|
|
|
"config": "${CONFIG}"
|
2016-10-24 14:23:05 +03:00
|
|
|
}]
|
2016-10-20 04:14:26 +03:00
|
|
|
]
|
2017-02-07 17:52:24 +02:00
|
|
|
},
|
|
|
|
"production": {
|
|
|
|
"plugins": [
|
2017-02-23 19:24:18 +02:00
|
|
|
// "transform-react-constant-elements" enable when #5325 is fixed
|
2017-02-07 17:52:24 +02:00
|
|
|
]
|
2016-10-20 04:14:26 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|