Skip to content

Commit 6199441

Browse files
doc: correct ESM load hook table header
`resolve` does not return a `source` property PR-URL: #40234 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent d0fa1e9 commit 6199441

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/api/esm.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -703,13 +703,13 @@ a URL should be interpreted, retrieved, and parsed.
703703

704704
The final value of `format` must be one of the following:
705705

706-
| `format` | Description | Acceptable types For `source` returned by `resolve` or `load` |
707-
| ------------ | ------------------------------ | -------------------------------------------------------------------------- |
708-
| `'builtin'` | Load a Node.js builtin module | Not applicable |
709-
| `'commonjs'` | Load a Node.js CommonJS module | Not applicable |
710-
| `'json'` | Load a JSON file | { [`string`][], [`ArrayBuffer`][], [`TypedArray`][] } |
711-
| `'module'` | Load an ES module | { [`string`][], [`ArrayBuffer`][], [`TypedArray`][] } |
712-
| `'wasm'` | Load a WebAssembly module | { [`ArrayBuffer`][], [`TypedArray`][] } |
706+
| `format` | Description | Acceptable types for `source` returned by `load` |
707+
| ------------ | ------------------------------ | ----------------------------------------------------- |
708+
| `'builtin'` | Load a Node.js builtin module | Not applicable |
709+
| `'commonjs'` | Load a Node.js CommonJS module | Not applicable |
710+
| `'json'` | Load a JSON file | { [`string`][], [`ArrayBuffer`][], [`TypedArray`][] } |
711+
| `'module'` | Load an ES module | { [`string`][], [`ArrayBuffer`][], [`TypedArray`][] } |
712+
| `'wasm'` | Load a WebAssembly module | { [`ArrayBuffer`][], [`TypedArray`][] } |
713713

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

0 commit comments

Comments
 (0)