Skip to content

Commit 722fe46

Browse files
MylesBorinsevanlucas
authored andcommittedJan 17, 2018
Revert "doc: import() is supported now"
This reverts commit 977fb13. This should not have landed on v9.x which does not yet support the feature PR-URL: #18141 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Khaidi Chu <i@2333.moe> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 56a9ae7 commit 722fe46

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎doc/api/esm.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ node --experimental-modules my-app.mjs
3333
### Supported
3434

3535
Only the CLI argument for the main entry point to the program can be an entry
36-
point into an ESM graph. Dynamic import can also be used with the flag
37-
`--harmony-dynamic-import` to create entry points into ESM graphs at run time.
36+
point into an ESM graph. In the future `import()` can be used to create entry
37+
points into ESM graphs at run time.
3838

3939
### Unsupported
4040

4141
| Feature | Reason |
4242
| --- | --- |
43-
| `require('./foo.mjs')` | ES Modules have differing resolution and timing, use dynamic import |
43+
| `require('./foo.mjs')` | ES Modules have differing resolution and timing, use language standard `import()` |
44+
| `import()` | pending newer V8 release used in Node.js |
4445
| `import.meta` | pending V8 implementation |
4546

4647
## Notable differences between `import` and `require`

0 commit comments

Comments
 (0)
Please sign in to comment.