babel-plugin-module-resolver icon indicating copy to clipboard operation
babel-plugin-module-resolver copied to clipboard

it seems not to be working from subdirectories

Open danielzzz opened this issue 4 years ago • 0 comments

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

danielzzz avatar Dec 28 '20 17:12 danielzzz