tleunen / babel-plugin-module-resolver

Custom module resolver plugin for Babel
MIT License
3.46k stars 205 forks source link

Plugin don't resolve aliases out side working directory #361

Open AhmedKorim opened 5 years ago

AhmedKorim commented 5 years ago

HI I'm trying to share code across react and react native including jsx

my current project structure /web => has aliases

I found that alias works as expected as long as they are under the root dir, but if I imported files from the shared folder they break

image

chinesedfan commented 5 years ago

You project structure is a little hard to be understood. Can you draw a better tree graph?