static-cms/.babelrc
2018-07-25 21:17:57 -04:00

58 lines
1.2 KiB
Plaintext

{
"presets": [
"react",
["env", {
"modules": false,
}],
],
"plugins": [
"lodash",
["babel-plugin-transform-builtin-extend", {
"globals": ["Error"]
}],
["transform-runtime", {
"useBuiltIns": true,
"useESModules": true,
}],
["module-resolver", {
"root": [
"./src/components"
],
"alias": {
"Actions": "./src/actions/",
"Backends": "./src/backends/",
"Constants": "./src/constants/",
"Formats": "./src/formats/",
"Integrations": "./src/integrations/",
"Lib": "./src/lib/",
"Reducers": "./src/reducers/",
"Redux": "./src/redux/",
"Routing": "./src/routing/",
"ValueObjects": "./src/valueObjects/",
}
}],
"transform-export-extensions",
"transform-class-properties",
"transform-object-rest-spread",
["inline-svg", {
"svgo": {
"plugins": [
{"removeViewBox": false},
],
},
}],
],
"env": {
"production": {
"plugins": [
["emotion", {"hoist": true}],
],
},
"development": {
"plugins": [
["emotion", {"sourceMap": true, "autoLabel": true }],
],
},
},
}