dispatch/client/.babelrc
2018-03-25 01:34:41 +01:00

36 lines
704 B
Plaintext

{
"presets": [
["es2015", { "modules": false, "loose": true }],
"react",
"stage-0"
],
"plugins": [
["module-resolver", {
"root": ["./src/js"],
"alias": {
"components": "./src/js/components",
"containers": "./src/js/containers",
"state": "./src/js/state",
"util": "./src/js/util"
}
}]
],
"env": {
"development": {
"plugins": ["react-hot-loader/babel"]
},
"test": {
"plugins": [
"rewire",
"transform-es2015-modules-commonjs"
]
},
"production": {
"plugins": [
"transform-react-inline-elements",
"transform-react-constant-elements"
]
}
}
}