@@ -1191,13 +1191,14 @@ changes:
11911191* ` nextResolve` {Function} The subsequent ` resolve` hook in the chain, or the
11921192 Node.js default ` resolve` hook after the last user-supplied ` resolve` hook
11931193 * ` specifier` {string}
1194- * ` context` {Object}
1194+ * ` context` {Object|undefined} When omitted, the defaults are provided. When provided, defaults
1195+ are merged in with preference to the provided properties.
11951196* Returns: {Object|Promise} The asynchronous version takes either an object containing the
11961197 following properties, or a ` Promise ` that will resolve to such an object. The
11971198 synchronous version only accepts an object returned synchronously.
1198- * ` format` {string|null|undefined} A hint to the load hook (it might be
1199- ignored)
1200- ` ' builtin ' | ' commonjs ' | ' json ' | ' module ' | ' wasm ' `
1199+ * ` format` {string|null|undefined} A hint to the ` load` hook (it might be ignored). It can be a
1200+ module format (such as ` ' commonjs ' ` or ` ' module ' ` ) or an arbitrary value like ` ' css ' ` or
1201+ ` ' yaml ' ` .
12011202 * ` importAttributes` {Object|undefined} The import attributes to use when
12021203 caching the module (optional; if excluded the input will be used)
12031204 * ` shortCircuit` {undefined|boolean} A signal that this hook intends to
@@ -1300,12 +1301,14 @@ changes:
13001301* ` context` {Object}
13011302 * ` conditions` {string\[ ]} Export conditions of the relevant ` package .json `
13021303 * ` format` {string|null|undefined} The format optionally supplied by the
1303- ` resolve` hook chain
1304+ ` resolve` hook chain. This can be any string value as an input; input values do not need to
1305+ conform to the list of acceptable return values described below.
13041306 * ` importAttributes` {Object}
13051307* ` nextLoad` {Function} The subsequent ` load` hook in the chain, or the
13061308 Node.js default ` load` hook after the last user-supplied ` load` hook
13071309 * ` url` {string}
1308- * ` context` {Object}
1310+ * ` context` {Object|undefined} When omitted, defaults are provided. When provided, defaults are
1311+ merged in with preference to the provided properties.
13091312* Returns: {Object|Promise} The asynchronous version takes either an object containing the
13101313 following properties, or a ` Promise ` that will resolve to such an object. The
13111314 synchronous version only accepts an object returned synchronously.
0 commit comments