Skip to content

Commit 5533d48

Browse files
himself65targos
authored andcommitted
doc: correct import statement
JSON file can be imported now PR-URL: #28876 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 84efadf commit 5533d48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/esm.md

Lines changed: 2 additions & 2 deletions
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)