Skip to content

Commit 6caaf5f

Browse files
committed
src: make --strip-types option false when compiled without amaro
stripe-types option's default value is true, but we need to ensure that when compiled without amaro, the default vaue is false. Fixes: #60640
1 parent c21b6c7 commit 6caaf5f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/node_options.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,12 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
10921092
"Type-stripping for TypeScript files.",
10931093
&EnvironmentOptions::strip_types,
10941094
kAllowedInEnvvar,
1095-
true);
1095+
#if HAVE_AMARO
1096+
true
1097+
#else
1098+
false
1099+
#endif // HAVE_AMARO
1100+
);
10961101
AddAlias("--experimental-strip-types", "--strip-types");
10971102
AddOption("--experimental-transform-types",
10981103
"enable transformation of TypeScript-only"

0 commit comments

Comments
 (0)