Sorry, this video is for subscribers only.

Click here to subscribe!

../../..

We have some common modules that nearly all of our code uses. Every time it’s used, our require() statement has to traverse up and back down the directory structure. Not only is this duplication annoying, it will cause problems whenever we need to move files around. How can we best access our common modules?

comments powered by Disqus