e2125c3555
If we only resolve them in WebPack the tests will not work.
51 lines
1.0 KiB
Plaintext
51 lines
1.0 KiB
Plaintext
{
|
|
"presets": [
|
|
["env", {
|
|
"modules": false
|
|
}],
|
|
"stage-1",
|
|
"react"
|
|
],
|
|
"plugins": [
|
|
"lodash",
|
|
["babel-plugin-transform-builtin-extend", {
|
|
"globals": ["Error"]
|
|
}],
|
|
["transform-runtime", {
|
|
"useBuiltIns": true,
|
|
"useESModules": true
|
|
}],
|
|
["module-resolver", {
|
|
/**
|
|
* Use aliases to avoid relative path import hell.
|
|
*/
|
|
"root": [
|
|
/**
|
|
* Components
|
|
*/
|
|
"./src/components"
|
|
],
|
|
"alias": {
|
|
/**
|
|
* Top level src directories
|
|
*/
|
|
"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/",
|
|
}
|
|
}]
|
|
],
|
|
"env": {
|
|
"test": {
|
|
"plugins": ["transform-es2015-modules-commonjs"]
|
|
}
|
|
}
|
|
}
|