Skip to content

Commit 71a94aa

Browse files
JakobJingleheimerdanielleadams
authored andcommitted
doc: correct ESM load hook table header
`resolve` does not return a `source` property PR-URL: #40234 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 5b074af commit 71a94aa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/api/esm.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -698,13 +698,13 @@ a URL should be interpreted, retrieved, and parsed.
698698

699699
The final value of `format` must be one of the following:
700700

701-
| `format` | Description | Acceptable types For `source` returned by `resolve` or `load` |
702-
| ------------ | ------------------------------ | -------------------------------------------------------------------------- |
703-
| `'builtin'` | Load a Node.js builtin module | Not applicable |
704-
| `'commonjs'` | Load a Node.js CommonJS module | Not applicable |
705-
| `'json'` | Load a JSON file | { [`string`][], [`ArrayBuffer`][], [`TypedArray`][] } |
706-
| `'module'` | Load an ES module | { [`string`][], [`ArrayBuffer`][], [`TypedArray`][] } |
707-
| `'wasm'` | Load a WebAssembly module | { [`ArrayBuffer`][], [`TypedArray`][] } |
701+
| `format` | Description | Acceptable types for `source` returned by `load` |
702+
| ------------ | ------------------------------ | ----------------------------------------------------- |
703+
| `'builtin'` | Load a Node.js builtin module | Not applicable |
704+
| `'commonjs'` | Load a Node.js CommonJS module | Not applicable |
705+
| `'json'` | Load a JSON file | { [`string`][], [`ArrayBuffer`][], [`TypedArray`][] } |
706+
| `'module'` | Load an ES module | { [`string`][], [`ArrayBuffer`][], [`TypedArray`][] } |
707+
| `'wasm'` | Load a WebAssembly module | { [`ArrayBuffer`][], [`TypedArray`][] } |
708708

709709
The value of `source` is ignored for type `'builtin'` because currently it is
710710
not possible to replace the value of a Node.js builtin (core) module. The value

0 commit comments

Comments
 (0)