Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBradley Farias <bradley.meck@gmail.com>2020-11-30 19:03:30 +0300
committerRich Trott <rtrott@gmail.com>2022-02-10 06:47:12 +0300
commitceadb473e6d3a22f38b737108fb5ac943bf8be09 (patch)
tree183acc918ce5dcf7d36e97adbdda96b3c594a57c /src/node_options.cc
parent52b1904a0dd4fe28cc7d62a9389892dedb0b1df2 (diff)
esm: support https remotely and http locally under flag
Co-authored-by: Jacob Smith <3012099+JakobJingleheimer@users.noreply.github.com> Co-authored-by: James M Snell <jasnell@gmail.com> Co-authored-by: Jordan Harband <ljharb@gmail.com> Co-authored-by: James Sumners <james@sumners.email> PR-URL: https://github.com/nodejs/node/pull/36328 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Diffstat (limited to 'src/node_options.cc')
-rw-r--r--src/node_options.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_options.cc b/src/node_options.cc
index d3617df4d1f..bac3de2404b 100644
--- a/src/node_options.cc
+++ b/src/node_options.cc
@@ -326,6 +326,10 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
kAllowedInEnvironment);
AddAlias("--loader", "--experimental-loader");
AddOption("--experimental-modules", "", NoOp{}, kAllowedInEnvironment);
+ AddOption("--experimental-network-imports",
+ "experimental https: support for the ES Module loader",
+ &EnvironmentOptions::experimental_https_modules,
+ kAllowedInEnvironment);
AddOption("--experimental-wasm-modules",
"experimental ES Module support for webassembly modules",
&EnvironmentOptions::experimental_wasm_modules,