Skip to content

Commit

Permalink
fixup experimental modules
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored and MylesBorins committed Jan 15, 2020
1 parent 6a95d80 commit 8f91464
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/node_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
&EnvironmentOptions::userland_loader,
kAllowedInEnvironment);
AddAlias("--loader", "--experimental-loader");
AddAlias("--experimental-modules", {});
AddOption("--experimental-modules",
"experimental modules features",
&EnvironmentOptions::experimental_modules,
kAllowedInEnvironment);
AddOption("--experimental-wasm-modules",
"experimental ES Module support for webassembly modules",
&EnvironmentOptions::experimental_wasm_modules,
Expand Down
1 change: 1 addition & 0 deletions src/node_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class EnvironmentOptions : public Options {
bool abort_on_uncaught_exception = false;
bool enable_source_maps = false;
bool experimental_json_modules = false;
bool experimental_modules = false;
std::string experimental_specifier_resolution;
std::string es_module_specifier_resolution;
bool experimental_wasm_modules = false;
Expand Down

0 comments on commit 8f91464

Please sign in to comment.