| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -381,8 +381,8 @@ To include an ES module into CommonJS, use [`import()`][]. | |||
| 381 | 381 | ||
| 382 | 382 | ### <code>import</code> statements | |
| 383 | 383 | ||
| 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, | ||
| 386 | 386 | use [`module.createRequire()`][]. | |
| 387 | 387 | ||
| 388 | 388 | `import` statements are permitted only in ES modules. For similar functionality | |
| Back | FazBrowse Home | New Git URL |
0 commit comments