Skip to content

Commit

Permalink
doc: correct import statement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
himself65 authored and targos committed Aug 2, 2019
1 parent 84efadf commit 5533d48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ To include an ES module into CommonJS, use [`import()`][].
### <code>import</code> statements
An `import` statement can reference either ES module or CommonJS JavaScript.
Other file types such as JSON and Native modules are not supported. For those,
An `import` statement can reference an ES module, a CommonJS module, or JSON.
Other file types such as Native modules are not supported. For those,
use [`module.createRequire()`][].
`import` statements are permitted only in ES modules. For similar functionality
Expand Down

0 comments on commit 5533d48

Please sign in to comment.