X Tutup
The Wayback Machine - https://web.archive.org/web/20220220182932/https://github.com/nodejs/node/pull/38837
Skip to content
New issue

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

doc: align module resolve algorithm with implementation #38837

Merged
merged 3 commits into from Dec 14, 2021

Conversation

@Ayase-252
Copy link
Member

@Ayase-252 Ayase-252 commented May 29, 2021

In docs, it reads like GLOBAL_FOLDERS takes precedence over node_module, but in implementation, GLOBAL_FOLDERS is appended to the last of paths to resolve. It should take lowest priority.

paths = ArrayPrototypeConcat(parent.paths, paths);

Fixes: #38128

doc/api/modules.md Outdated Show resolved Hide resolved
@aduh95
Copy link
Contributor

@aduh95 aduh95 commented May 29, 2021

doc/api/modules.md Outdated Show resolved Hide resolved
Co-authored-by: Jordan Harband <ljharb@gmail.com>
Co-authored-by: Christopher Beeson <christopher@bl-ue.com>
doc/api/modules.md Outdated Show resolved Hide resolved
Co-authored-by: Jordan Harband <ljharb@gmail.com>
@Ayase-252
Copy link
Member Author

@Ayase-252 Ayase-252 commented May 31, 2021

It seems that GH action build-windows is quite unstable?

@kongmoumou
Copy link

@kongmoumou kongmoumou commented Dec 14, 2021

When will this PR be merged 😂

@aduh95 aduh95 merged commit ea977fc into nodejs:master Dec 14, 2021
12 of 13 checks passed
@aduh95
Copy link
Contributor

@aduh95 aduh95 commented Dec 14, 2021

Landed in ea977fc

danielleadams added a commit that referenced this issue Dec 16, 2021
Fixes: #38128

PR-URL: #38837
Reviewed-By: Guy Bedford <guybedford@gmail.com>
danielleadams added a commit that referenced this issue Dec 17, 2021
Fixes: #38128

PR-URL: #38837
Reviewed-By: Guy Bedford <guybedford@gmail.com>
danielleadams added a commit that referenced this issue Jan 31, 2022
Fixes: #38128

PR-URL: #38837
Reviewed-By: Guy Bedford <guybedford@gmail.com>
danielleadams added a commit that referenced this issue Jan 31, 2022
Fixes: #38128

PR-URL: #38837
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Linkgoron added a commit to Linkgoron/node that referenced this issue Jan 31, 2022
Fixes: nodejs#38128

PR-URL: nodejs#38837
Reviewed-By: Guy Bedford <guybedford@gmail.com>
danielleadams added a commit that referenced this issue Feb 1, 2022
Fixes: #38128

PR-URL: #38837
Reviewed-By: Guy Bedford <guybedford@gmail.com>
@danielleadams danielleadams mentioned this pull request Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

6 participants
X Tutup