Skip to content

Commit 8a10b50

Browse files
himself65Trott
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 2713f78 commit 8a10b50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)