Skip to content

Commit a450ee5

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 9244dbe commit a450ee5

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
@@ -1089,7 +1089,12 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
10891089
"Type-stripping for TypeScript files.",
10901090
&EnvironmentOptions::strip_types,
10911091
kAllowedInEnvvar,
1092-
true);
1092+
#if HAVE_AMARO
1093+
true
1094+
#else
1095+
false
1096+
#endif // HAVE_AMARO
1097+
);
10931098
AddAlias("--experimental-strip-types", "--strip-types");
10941099
AddOption("--experimental-transform-types",
10951100
"enable transformation of TypeScript-only"

0 commit comments

Comments
 (0)