don't look up
Stop requirejs from traversing at a certain point
Whatever you do — don't look up
Stop requirejs' search path from looking higher than a given directory. This behaviour is should prevent your application from finding modules installed globally, or on a higher level directory, like in a mono-repo containing many packages.
;
Example
Consider the following tree
└── repository
├── package
│ ├── index.js
│ ├── package.json
│ └── node_modules
│ └── child-level-module
└── node_modules
└── parent-level-module
package/index.js
; // works; // works
With "don't look up"
__dirname;; // throws error; // works