@@ -1191,13 +1191,14 @@ changes:
1191
1191
* ` nextResolve` {Function} The subsequent ` resolve` hook in the chain, or the
1192
1192
Node.js default ` resolve` hook after the last user-supplied ` resolve` hook
1193
1193
* ` 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.
1195
1196
* Returns: {Object|Promise} The asynchronous version takes either an object containing the
1196
1197
following properties, or a ` Promise ` that will resolve to such an object. The
1197
1198
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 ' ` .
1201
1202
* ` importAttributes` {Object|undefined} The import attributes to use when
1202
1203
caching the module (optional; if excluded the input will be used)
1203
1204
* ` shortCircuit` {undefined|boolean} A signal that this hook intends to
@@ -1300,12 +1301,14 @@ changes:
1300
1301
* ` context` {Object}
1301
1302
* ` conditions` {string\[ ]} Export conditions of the relevant ` package .json `
1302
1303
* ` 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.
1304
1306
* ` importAttributes` {Object}
1305
1307
* ` nextLoad` {Function} The subsequent ` load` hook in the chain, or the
1306
1308
Node.js default ` load` hook after the last user-supplied ` load` hook
1307
1309
* ` 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.
1309
1312
* Returns: {Object|Promise} The asynchronous version takes either an object containing the
1310
1313
following properties, or a ` Promise ` that will resolve to such an object. The
1311
1314
synchronous version only accepts an object returned synchronously.
0 commit comments