entwicklerstube / babel-plugin-root-import

Add the opportunity to import modules by the root path
https://npmjs.com/babel-plugin-root-import
MIT License
1.18k stars 76 forks source link

Update README example for multiple prefixes / suffixes #121

Closed sbauch closed 5 years ago

sbauch commented 5 years ago

I was struggling with using multiple custom prefixes / suffixes.

I saw this comment in an issue, which showed a .babelrc that looked a bit different from the README, and that seems to work correctly - https://github.com/entwicklerstube/babel-plugin-root-import/issues/74#issuecomment-301325742

I figured I'd update the README and ask whether this is the correct way to use multiple prefixes / suffixes in one swoop 😄

brigand commented 5 years ago

Thanks! Both are supported, but there's no reason to use the 'paths' key currently, as there are no other top level options.