Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions doc/api/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -933,8 +933,9 @@ changes:
* `specifier` {string}
* `context` {Object}
* `conditions` {string\[]} Export conditions of the relevant `package.json`
* `importAttributes` {Object} An object whose key-value pairs represent the
attributes for the module to import
* `importAttributes` {Object|undefined} An object whose key-value pairs
represent the attributes for the module to import, or `undefined` if the
module is loaded by the CommonJS loader (for example, through `require()`)
* `parentURL` {string|undefined} The module importing this one, or undefined
if this is the Node.js entry point
* `nextResolve` {Function} The subsequent `resolve` hook in the chain, or the
Expand Down Expand Up @@ -1024,7 +1025,9 @@ changes:
* `format` {string|null|undefined} The format optionally supplied by the
`resolve` hook chain. This can be any string value as an input; input values do not need to
conform to the list of acceptable return values described below.
* `importAttributes` {Object}
* `importAttributes` {Object|undefined} The import attributes of the module,
or `undefined` if the module is loaded by the CommonJS loader (for example,
through `require()`)
* `nextLoad` {Function} The subsequent `load` hook in the chain, or the
Node.js default `load` hook after the last user-supplied `load` hook
* `url` {string}
Expand Down
Loading