Commit 722fe46 1 parent 56a9ae7 commit 722fe46 Copy full SHA for 722fe46
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,15 @@ node --experimental-modules my-app.mjs
33
33
### Supported
34
34
35
35
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.
38
38
39
39
### Unsupported
40
40
41
41
| Feature | Reason |
42
42
| --- | --- |
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 |
44
45
| ` import.meta ` | pending V8 implementation |
45
46
46
47
## Notable differences between ` import ` and ` require `
You can’t perform that action at this time.
0 commit comments