Closed felixsanz closed 8 years ago
you should avoid that kind of magic in my opinion. it's harder to mantain
I personally agree with you, but it seems that a lot of people actually appreciate this way.
Another huge downside for me: no proper refactoring/intel support in WebStorm. Though if you are using atom/sublime/vim/emacs that thing just does not exist for you.
We have path dynamically set as
NODE_PATH
env var, so it is resolved tosource
dir.See https://nodejs.org/api/modules.html#modules_loading_from_the_global_folders