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
  • Loading branch information
himself65 committed Jul 28, 2019
1 parent 03317f0 commit 849ca9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/api/esm.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,9 @@ 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 either ES module or CommonJS JavaScript
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 849ca9d

Please sign in to comment.