1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-11 05:40:11 +02:00
copilot/frontend/.babelrc

52 lines
948 B
Plaintext
Raw Normal View History

2016-10-20 04:14:26 +03:00
{
"sourceMaps": "both",
"presets": [
2016-12-12 12:56:48 +02:00
"react",
["env", {
"modules": false,
2016-12-12 12:56:48 +02:00
"targets": {
"browsers": [
"last 2 versions"
]
}
}]
2016-10-20 04:14:26 +03:00
],
"plugins": [
"transform-class-properties",
2016-10-20 04:14:26 +03:00
["transform-object-rest-spread", {
"useBuiltIns": true
}],
["transform-react-jsx", {
"useBuiltIns": true
}],
"transform-exponentiation-operator"
2016-10-20 04:14:26 +03:00
],
"env": {
"development": {
2016-10-20 04:14:26 +03:00
"plugins": [
"transform-react-jsx-source",
"transform-react-jsx-self"
]
},
"test": {
"presets": [
["env", {
"targets": {
"node": "current"
2016-10-20 04:14:26 +03: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
]
},
"production": {
"plugins": [
// "transform-react-constant-elements" enable when #5325 is fixed
]
2016-10-20 04:14:26 +03:00
}
}
}