We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AFAIK this has a resolution pattern of some kind (locally first, then within /lib etc..) https://developer.enonic.com/docs/xp/stable/framework/globals#require
The text was updated successfully, but these errors were encountered:
It is said on the page you linked
If the path is relative then it will start looking for the file from the local directory
It also says
The function implements parts of the CommonJS Modules Specification
CommonJS Modules Specification
And one who is familiar with it can know that
Relative identifiers are resolved relative to the identifier of the module in which "require" is written and called.
So, it is explained at least twice how relative paths are resolved.
BTW, there is no lookup in anywhere else (/lib etc...) as it would be against CommonJS Modules Specification
Sorry, something went wrong.
anatol-sialitski
No branches or pull requests
AFAIK this has a resolution pattern of some kind (locally first, then within /lib etc..)
https://developer.enonic.com/docs/xp/stable/framework/globals#require
The text was updated successfully, but these errors were encountered: