Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 71a94aa

Browse filesBrowse 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
Copy full SHA for 71a94aa

File tree

Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed
Open diff view settings
Collapse file

‎doc/api/esm.md‎

Copy file name to clipboardExpand all lines: doc/api/esm.md
+7-7Lines changed: 7 additions & 7 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.