Handle import aliases with babel instead of webpack
This commit is contained in:
parent
86c5451edb
commit
1c199f40e2
7 changed files with 94 additions and 158 deletions
|
@ -4,6 +4,17 @@
|
|||
"react",
|
||||
"stage-0"
|
||||
],
|
||||
"plugins": [
|
||||
["module-resolver", {
|
||||
"root": ["./src/js"],
|
||||
"alias": {
|
||||
"components": "./components",
|
||||
"containers": "./containers",
|
||||
"state": "./state",
|
||||
"util": "./util"
|
||||
}
|
||||
}]
|
||||
],
|
||||
"env": {
|
||||
"development": {
|
||||
"plugins": ["react-hot-loader/babel"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue