Skip to content

Commit fae0baf

Browse files
committed
fix test
1 parent 84d07c8 commit fae0baf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/tsoptions/parsinghelpers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ func ParseCompilerOptions(key string, value any, allOptions *core.CompilerOption
169169

170170
func parseCompilerOptions(key string, value any, allOptions *core.CompilerOptions) (foundKey bool) {
171171
option := CommandLineCompilerOptionsMap.Get(key)
172-
if option == nil {
173-
return false
172+
if option != nil {
173+
key = option.Name
174174
}
175-
switch option.Name {
175+
switch key {
176176
case "allowJs":
177177
allOptions.AllowJs = parseTristate(value)
178178
case "allowImportingTsExtensions":

0 commit comments

Comments
 (0)