We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe94a21 commit 1e1ae30Copy full SHA for 1e1ae30
src/compiler/program.ts
@@ -2234,8 +2234,7 @@ namespace ts {
2234
const jsxImport = getJSXRuntimeImport(getJSXImplicitImportBase(options, file), options);
2235
if (jsxImport) {
2236
// synthesize `import "base/jsx-runtime"` declaration
2237
- imports ||= [];
2238
- imports.push(createSyntheticImport(jsxImport, file));
+ (imports ||= []).push(createSyntheticImport(jsxImport, file));
2239
}
2240
2241
0 commit comments