You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there, I was wondering when should I use this module over the other? In my project I'm only looking to require stuff from the root, so I won't be needing another folder besides that for quick access. Should I just use require-self-ref instead? I think it would be more transparent as to where I require the modules from, compared to app-module-path-node. Thanks.
The text was updated successfully, but these errors were encountered:
I feel like require-self-ref is strictly better than app-module-path and am recommending it going forward. The biggest advantage of require-self-ref is that it relies on a special symbol at the beginning of the target path and this makes the whole solution less of a hack. Of course, I would love to see the Node.js module loading system adopt the require-self-ref approach natively, but I don't think that will happen because they have locked the native module loading system, but who knows...
Hey there, I was wondering when should I use this module over the other? In my project I'm only looking to require stuff from the root, so I won't be needing another folder besides that for quick access. Should I just use
require-self-ref
instead? I think it would be more transparent as to where I require the modules from, compared toapp-module-path-node
. Thanks.The text was updated successfully, but these errors were encountered: