Skip to content

Commit 6bf6251

Browse files
legendecasaduh95
authored andcommitted
module: enable import support for addons by default
Signed-off-by: Chengzhong Wu <[email protected]> PR-URL: #64221 Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Edy Silva <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
1 parent 76bf86f commit 6bf6251

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

doc/api/cli.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,9 +957,13 @@ It is possible to run code containing inline types unless the
957957

958958
<!-- YAML
959959
added: v23.6.0
960+
changes:
961+
- version: REPLACEME
962+
pr-url: https://github.com/nodejs/node/pull/64221
963+
description: This is enabled by default.
960964
-->
961965

962-
> Stability: 1.0 - Early development
966+
> Stability: 1.2 - Release candidate
963967
964968
Enable experimental import support for `.node` addons.
965969

src/node_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class EnvironmentOptions : public Options {
126126
bool require_module = true;
127127
std::string dns_result_order;
128128
bool enable_source_maps = false;
129-
bool experimental_addon_modules = EXPERIMENTALS_DEFAULT_VALUE;
129+
bool experimental_addon_modules = true;
130130
bool experimental_eventsource = EXPERIMENTALS_DEFAULT_VALUE;
131131
bool experimental_websocket = true;
132132
bool experimental_sqlite = HAVE_SQLITE;

0 commit comments

Comments
 (0)