From 8f91464412c766aeccf59247ae6487a5b03a3cd8 Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Tue, 7 Jan 2020 06:56:20 +0200 Subject: [PATCH] fixup experimental modules --- src/node_options.cc | 5 ++++- src/node_options.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/node_options.cc b/src/node_options.cc index d05d9a36bf6d42..2f0d1a9ad7ed04 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -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, diff --git a/src/node_options.h b/src/node_options.h index 9c0d65e2a1ee89..788a4815e50906 100644 --- a/src/node_options.h +++ b/src/node_options.h @@ -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;