Skip to content

Commit 5d8693e

Browse files
authored
module: enable import support for addons by default
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net> PR-URL: #64221 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 5922197 commit 5d8693e

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
@@ -1039,9 +1039,13 @@ It is possible to run code containing inline types unless the
10391039
added:
10401040
- v23.6.0
10411041
- v22.20.0
1042+
changes:
1043+
- version: REPLACEME
1044+
pr-url: https://github.com/nodejs/node/pull/64221
1045+
description: This is enabled by default.
10421046
-->
10431047

1044-
> Stability: 1.0 - Early development
1048+
> Stability: 1.2 - Release candidate
10451049
10461050
Enable experimental import support for `.node` addons.
10471051

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_ffi = EXPERIMENTALS_DEFAULT_VALUE;
132132
bool experimental_websocket = true;

0 commit comments

Comments
 (0)