This repository was archived by the owner on Jun 3, 2019. It is now read-only.
This repository was archived by the owner on Jun 3, 2019. It is now read-only.
Support of absolute imports #203
Closed
Description
There are numerous approaches to get absolute paths and get rid of ../../../
hell.
- put everything under
node_modules
subfolder - use symlinks
- use webpacks aliases
- use babel plugin (https://github.com/tleunen/babel-plugin-module-resolver)
- use lerna (https://lernajs.io/)
- use some kind of copy-on-change technique (like wix's wml https://github.com/wix/wml)
I know that lots of people think the problem is not that important. I'm not one of them :)
There are some long discussions to dive deeper into the problem (like this one in create-react-app
facebook/create-react-app#1065).
I really like [and been using] the last approach — it's not that clean but it:
- just works (c) on any platform
- does not force you to use any specific project layout
- does not require special tooling support as every node tool supports
node_modules
.
What do you think?