mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
esm: add experimental support for addon modules
PR-URL: https://github.com/nodejs/node/pull/55844 Backport-PR-URL: https://github.com/nodejs/node/pull/59961 Fixes: https://github.com/nodejs/node/issues/40541 Fixes: https://github.com/nodejs/node/issues/55821 Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
937e9bb1c6
commit
d302cb3bb2
21 files changed
+330
-25
No files matched your search
@@ -424,6 +424,10 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
|
||||
"Treat the entrypoint as a URL",
|
||||
&EnvironmentOptions::entry_is_url,
|
||||
kAllowedInEnvvar);
|
||||
AddOption("--experimental-addon-modules",
|
||||
"experimental import support for addons",
|
||||
&EnvironmentOptions::experimental_addon_modules,
|
||||
kAllowedInEnvvar);
|
||||
AddOption("--experimental-abortcontroller", "", NoOp{}, kAllowedInEnvvar);
|
||||
AddOption("--experimental-eventsource",
|
||||
"experimental EventSource API",
|
||||
|
||||
@@ -121,6 +121,7 @@ class EnvironmentOptions : public Options {
|
||||
bool require_module = true;
|
||||
std::string dns_result_order;
|
||||
bool enable_source_maps = false;
|
||||
bool experimental_addon_modules = false;
|
||||
bool experimental_eventsource = false;
|
||||
bool experimental_fetch = true;
|
||||
bool experimental_websocket = true;
|
||||
|
||||
Reference in new issue
Block a user