Resolve module aliases in Babel.
If we only resolve them in WebPack the tests will not work.
This commit is contained in:
26
.babelrc
26
.babelrc
@ -14,6 +14,32 @@
|
||||
["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": {
|
||||
|
Reference in New Issue
Block a user