The behavior similar to Node.js core modules resolving - first it tries to locate file locally relative to project root, then it tries to locate it via absolute path.
So, now you can use your /dependencies wherever they are located in (absolutely static or relatively path)
Current
/dependencies
file logic doesn't allow to use paths relative to root of Total.js project, only absolute like this:If resolution fails, Total.js throws Error.
This commit changes behavior of resolving & requiring deps, so everyone may use both absolute & relative paths for deps:
Absolute (wherever the file is located):
Relative to project root
The behavior similar to Node.js core modules resolving - first it tries to locate file locally relative to project root, then it tries to locate it via absolute path.
So, now you can use your
/dependencies
wherever they are located in (absolutely static or relatively path)