joyent-portal/frontend/.babelrc

52 lines
918 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"
]
2016-10-20 04:14:26 +03:00
}
}
}