From d2e390add7c7feeeb464caa75d6a21a0518120d1 Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Tue, 30 Jun 2026 14:59:24 -0400 Subject: [PATCH 1/2] module: enable import support for addons by default Signed-off-by: Chengzhong Wu --- doc/api/cli.md | 6 +++++- src/node_options.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index ef5734822bf877..35c151568c547b 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1039,9 +1039,13 @@ It is possible to run code containing inline types unless the added: - v23.6.0 - v22.20.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/xxx + description: This is enabled by default. --> -> Stability: 1.0 - Early development +> Stability: 1.2 - Release candidate Enable experimental import support for `.node` addons. diff --git a/src/node_options.h b/src/node_options.h index 3b3c6f371a03c4..eb5aadc2347e25 100644 --- a/src/node_options.h +++ b/src/node_options.h @@ -126,7 +126,7 @@ class EnvironmentOptions : public Options { bool require_module = true; std::string dns_result_order; bool enable_source_maps = false; - bool experimental_addon_modules = EXPERIMENTALS_DEFAULT_VALUE; + bool experimental_addon_modules = true; bool experimental_eventsource = EXPERIMENTALS_DEFAULT_VALUE; bool experimental_ffi = EXPERIMENTALS_DEFAULT_VALUE; bool experimental_websocket = true; From 86068f525b18cb5810d4a6843e433c131445f41f Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Tue, 30 Jun 2026 15:52:48 -0400 Subject: [PATCH 2/2] fixup! module: enable import support for addons by default --- doc/api/cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 35c151568c547b..3e8f41867ed41a 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1041,7 +1041,7 @@ added: - v22.20.0 changes: - version: REPLACEME - pr-url: https://github.com/nodejs/node/pull/xxx + pr-url: https://github.com/nodejs/node/pull/64221 description: This is enabled by default. -->