babel-plugin-module-resolver
babel-plugin-module-resolver copied to clipboard
it seems not to be working from subdirectories
hello,
this is my config (package.json)
"plugins": [
[
"module-resolver",
{
"cwd": "packagejson",
"alias": {
"@nav": "./src/navigation",
"underscore": "lodash",
"@store": "./src/store"
}
}
]
]
when I use import store from '@store/configureStore' in a file that is in src it works
but in any subdirectory for example src/mycomponent it does not..
I tried different configurations of "root" but I could not find any that would work