Skip to content

Commit 977fb13

Browse files
devsnekMylesBorins
authored andcommitted
doc: import() is supported now
PR-URL: #17395 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 3ad8cf1 commit 977fb13

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/api/esm.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@ 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. In the future `import()` can be used to create entry
37-
points into ESM graphs at run time.
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.
3838

3939
### Unsupported
4040

4141
| Feature | Reason |
4242
| --- | --- |
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 |
43+
| `require('./foo.mjs')` | ES Modules have differing resolution and timing, use dynamic import |
4544
| `import.meta` | pending V8 implementation |
4645

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

0 commit comments

Comments
 (0)