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 5533d48

Browse filesBrowse files
himself65targos
authored andcommitted
doc: correct import statement
JSON file can be imported now PR-URL: #28876 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 84efadf commit 5533d48
Copy full SHA for 5533d48

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎doc/api/esm.md‎

Copy file name to clipboardExpand all lines: doc/api/esm.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,8 @@ To include an ES module into CommonJS, use [`import()`][].
381381
382382
### <code>import</code> statements
383383
384-
An `import` statement can reference either ES module or CommonJS JavaScript.
385-
Other file types such as JSON and Native modules are not supported. For those,
384+
An `import` statement can reference an ES module, a CommonJS module, or JSON.
385+
Other file types such as Native modules are not supported. For those,
386386
use [`module.createRequire()`][].
387387
388388
`import` statements are permitted only in ES modules. For similar functionality

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.