Skip to content

Commit 1e1ae30

Browse files
Update src/compiler/program.ts
Co-authored-by: Sheetal Nandi <[email protected]>
1 parent fe94a21 commit 1e1ae30

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/compiler/program.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2234,8 +2234,7 @@ namespace ts {
22342234
const jsxImport = getJSXRuntimeImport(getJSXImplicitImportBase(options, file), options);
22352235
if (jsxImport) {
22362236
// synthesize `import "base/jsx-runtime"` declaration
2237-
imports ||= [];
2238-
imports.push(createSyntheticImport(jsxImport, file));
2237+
(imports ||= []).push(createSyntheticImport(jsxImport, file));
22392238
}
22402239
}
22412240

0 commit comments

Comments
 (0)