mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 15:06:33 +01:00
doc: format correction for experimental loader hooks
PR-URL: https://github.com/nodejs/node/pull/27537 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
parent
1aa99df99b
commit
523a9fbcb4
@ -467,7 +467,7 @@ export async function resolve(specifier,
|
||||
defaultResolver) {
|
||||
return {
|
||||
url: new URL(specifier, parentModuleURL).href,
|
||||
format: 'esm'
|
||||
format: 'module'
|
||||
};
|
||||
}
|
||||
```
|
||||
@ -526,7 +526,7 @@ export function resolve(specifier, parentModuleURL = baseURL, defaultResolve) {
|
||||
}
|
||||
return {
|
||||
url: resolved.href,
|
||||
format: 'esm'
|
||||
format: 'module'
|
||||
};
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user