Skip to content
Permalink
Browse files

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>
  • Loading branch information...
Himself65 authored and targos committed Jul 27, 2019
1 parent 84efadf commit 5533d482908173cbf76dd689baf0873e394cda3b
Showing with 2 additions and 2 deletions.
  1. +2 −2 doc/api/esm.md
@@ -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

0 comments on commit 5533d48

Please sign in to comment.
You can’t perform that action at this time.