@@ -1039,13 +1039,14 @@ changes:
10391039* ` nextResolve` {Function} The subsequent ` resolve` hook in the chain, or the
10401040 Node.js default ` resolve` hook after the last user-supplied ` resolve` hook
10411041 * ` specifier` {string}
1042- * ` context` {Object}
1042+ * ` context` {Object|undefined} When omitted, the defaults are provided. When provided, defaults
1043+ are merged in with preference to the provided properties.
10431044* Returns: {Object|Promise} The asynchronous version takes either an object containing the
10441045 following properties, or a ` Promise ` that will resolve to such an object. The
10451046 synchronous version only accepts an object returned synchronously.
1046- * ` format` {string|null|undefined} A hint to the load hook (it might be
1047- ignored)
1048- ` ' builtin ' | ' commonjs ' | ' json ' | ' module ' | ' wasm ' `
1047+ * ` format` {string|null|undefined} A hint to the ` load` hook (it might be ignored). It can be a
1048+ module format (such as ` ' commonjs ' ` or ` ' module ' ` ) or an arbitrary value like ` ' css ' ` or
1049+ ` ' yaml ' ` .
10491050 * ` importAttributes` {Object|undefined} The import attributes to use when
10501051 caching the module (optional; if excluded the input will be used)
10511052 * ` shortCircuit` {undefined|boolean} A signal that this hook intends to
@@ -1148,12 +1149,14 @@ changes:
11481149* ` context` {Object}
11491150 * ` conditions` {string\[ ]} Export conditions of the relevant ` package .json `
11501151 * ` format` {string|null|undefined} The format optionally supplied by the
1151- ` resolve` hook chain
1152+ ` resolve` hook chain. This can be any string value as an input; input values do not need to
1153+ conform to the list of acceptable return values described below.
11521154 * ` importAttributes` {Object}
11531155* ` nextLoad` {Function} The subsequent ` load` hook in the chain, or the
11541156 Node.js default ` load` hook after the last user-supplied ` load` hook
11551157 * ` url` {string}
1156- * ` context` {Object}
1158+ * ` context` {Object|undefined} When omitted, defaults are provided. When provided, defaults are
1159+ merged in with preference to the provided properties.
11571160* Returns: {Object|Promise} The asynchronous version takes either an object containing the
11581161 following properties, or a ` Promise ` that will resolve to such an object. The
11591162 synchronous version only accepts an object returned synchronously.
0 commit comments