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) {
|
defaultResolver) {
|
||||||
return {
|
return {
|
||||||
url: new URL(specifier, parentModuleURL).href,
|
url: new URL(specifier, parentModuleURL).href,
|
||||||
format: 'esm'
|
format: 'module'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -526,7 +526,7 @@ export function resolve(specifier, parentModuleURL = baseURL, defaultResolve) {
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
url: resolved.href,
|
url: resolved.href,
|
||||||
format: 'esm'
|
format: 'module'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user