Skip to content

Conversation

@dynst
Copy link

@dynst dynst commented Oct 31, 2025

https://nodejs.org/docs/latest-v20.x/api/modules.html#loading-ecmascript-modules-using-require

Two paragraphs earlier it said require() simply returns the module namespace object, so remove the phrase in the "module.exports" documentation #54563 that implies it's conditional on there being both named exports and a default export.

@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 Oct 31, 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.

5 participants