Use babel-plugin-module-resolver to fix imports from project root (#145)
This commit is contained in:
parent
0d5215a8b7
commit
19b7918679
2 changed files with 5 additions and 2 deletions
5
.babelrc
5
.babelrc
|
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
"presets": [ "react-native" ],
|
||||
"plugins": [
|
||||
["resolver", {"resolveDirs": [".", "config", "test"]}]
|
||||
["module-resolver", {
|
||||
"root": [".", "config", "test"],
|
||||
"alias": {}
|
||||
}]
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"babel-eslint": "7.0.0",
|
||||
"babel-plugin-resolver": "1.1.0",
|
||||
"babel-plugin-module-resolver": "2.4.0",
|
||||
"babel-preset-es2015": "6.18.0",
|
||||
"babel-preset-react-native": "1.9.0",
|
||||
"babel-register": "6.16.3",
|
||||
|
|
|
|||
Loading…
Reference in a new issue