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 <duhamelantoine1995@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 5b074af commit 71a94aa

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎doc/api/esm.md‎

Lines changed: 7 additions & 7 deletions
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 ESmodule| { [`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 ESmodule| { [`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.jsbuiltin (core) module. The value

0 commit comments

Comments
 (0)