@@ -1039,13 +1039,14 @@ changes:
1039
1039
* ` nextResolve` {Function} The subsequent ` resolve` hook in the chain, or the
1040
1040
Node.js default ` resolve` hook after the last user-supplied ` resolve` hook
1041
1041
* ` 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.
1043
1044
* Returns: {Object|Promise} The asynchronous version takes either an object containing the
1044
1045
following properties, or a ` Promise ` that will resolve to such an object. The
1045
1046
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 ' ` .
1049
1050
* ` importAttributes` {Object|undefined} The import attributes to use when
1050
1051
caching the module (optional; if excluded the input will be used)
1051
1052
* ` shortCircuit` {undefined|boolean} A signal that this hook intends to
@@ -1148,12 +1149,14 @@ changes:
1148
1149
* ` context` {Object}
1149
1150
* ` conditions` {string\[ ]} Export conditions of the relevant ` package .json `
1150
1151
* ` 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.
1152
1154
* ` importAttributes` {Object}
1153
1155
* ` nextLoad` {Function} The subsequent ` load` hook in the chain, or the
1154
1156
Node.js default ` load` hook after the last user-supplied ` load` hook
1155
1157
* ` 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.
1157
1160
* Returns: {Object|Promise} The asynchronous version takes either an object containing the
1158
1161
following properties, or a ` Promise ` that will resolve to such an object. The
1159
1162
synchronous version only accepts an object returned synchronously.
0 commit comments