@@ -1036,13 +1036,14 @@ changes:
10361036* ` nextResolve` {Function} The subsequent ` resolve` hook in the chain, or the
10371037 Node.js default ` resolve` hook after the last user-supplied ` resolve` hook
10381038 * ` specifier` {string}
1039- * ` context` {Object}
1039+ * ` context` {Object|undefined} When omitted, the defaults are provided. When provided, defaults
1040+ are merged in with preference to the provided properties.
10401041* Returns: {Object|Promise} The asynchronous version takes either an object containing the
10411042 following properties, or a ` Promise ` that will resolve to such an object. The
10421043 synchronous version only accepts an object returned synchronously.
1043- * ` format` {string|null|undefined} A hint to the load hook (it might be
1044- ignored)
1045- ` ' builtin ' | ' commonjs ' | ' json ' | ' module ' | ' wasm ' `
1044+ * ` format` {string|null|undefined} A hint to the ` load` hook (it might be ignored). It can be a
1045+ module format (such as ` ' commonjs ' ` or ` ' module ' ` ) or an arbitrary value like ` ' css ' ` or
1046+ ` ' yaml ' ` .
10461047 * ` importAttributes` {Object|undefined} The import attributes to use when
10471048 caching the module (optional; if excluded the input will be used)
10481049 * ` shortCircuit` {undefined|boolean} A signal that this hook intends to
@@ -1145,12 +1146,14 @@ changes:
11451146* ` context` {Object}
11461147 * ` conditions` {string\[ ]} Export conditions of the relevant ` package .json `
11471148 * ` format` {string|null|undefined} The format optionally supplied by the
1148- ` resolve` hook chain
1149+ ` resolve` hook chain. This can be any string value as an input; input values do not need to
1150+ conform to the list of acceptable return values described below.
11491151 * ` importAttributes` {Object}
11501152* ` nextLoad` {Function} The subsequent ` load` hook in the chain, or the
11511153 Node.js default ` load` hook after the last user-supplied ` load` hook
11521154 * ` url` {string}
1153- * ` context` {Object}
1155+ * ` context` {Object|undefined} When omitted, defaults are provided. When provided, defaults are
1156+ merged in with preference to the provided properties.
11541157* Returns: {Object|Promise} The asynchronous version takes either an object containing the
11551158 following properties, or a ` Promise ` that will resolve to such an object. The
11561159 synchronous version only accepts an object returned synchronously.
0 commit comments