| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 00d5422 commit d89f310
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,8 +33,8 @@ 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. 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 to create entry points | ||
| 37 | + into ESM graphs at runtime. | ||
| 38 | 38 | ||
| 39 | 39 | ### Unsupported | |
| 40 | 40 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4077,6 +4077,8 @@ static void ParseArgs(int* argc, | |||
| 4077 | 4077 | config_preserve_symlinks = true; | |
| 4078 | 4078 | } else if (strcmp(arg, "--experimental-modules") == 0) { | |
| 4079 | 4079 | config_experimental_modules = true; | |
| 4080 | + new_v8_argv[new_v8_argc] = "--harmony-dynamic-import"; | ||
| 4081 | + new_v8_argc += 1; | ||
| 4080 | 4082 | } else if (strcmp(arg, "--loader") == 0) { | |
| 4081 | 4083 | const char* module = argv[index + 1]; | |
| 4082 | 4084 | if (!config_experimental_modules) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - // Flags: --experimental-modules --harmony-dynamic-import | ||
| 1 | + // Flags: --experimental-modules | ||
| 2 | 2 | 'use strict'; | |
| 3 | 3 | const common = require('../common'); | |
| 4 | 4 | const assert = require('assert'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments