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: fix pseudo code in modules.md #57677

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chirsz-ever
Copy link
Contributor

The pseudo code involved in the change adds the node_modules directories closer and closer to the root directory to DIRS. The correct way should be to add it to the end, which is consistent with the actual behavior of Node.

This problem was introduced in f77fe64 of PR #38837.

@Ayase-252 applied a change suggested by @guybedford, although they discovered that the change is wrong in a later conversation, the change was still merged.1

Footnotes

  1. https://github.com/nodejs/node/pull/38837#discussion_r641990919

This problem was introduced in PR nodejs#38837.
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/loaders

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. module Issues and PRs related to the module subsystem. labels Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. module Issues and PRs related to the module subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants