Update src/compiler/program.ts
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
This commit is contained in:
parent
fe94a2180c
commit
1e1ae3034b
|
@ -2234,8 +2234,7 @@ namespace ts {
|
|||
const jsxImport = getJSXRuntimeImport(getJSXImplicitImportBase(options, file), options);
|
||||
if (jsxImport) {
|
||||
// synthesize `import "base/jsx-runtime"` declaration
|
||||
imports ||= [];
|
||||
imports.push(createSyntheticImport(jsxImport, file));
|
||||
(imports ||= []).push(createSyntheticImport(jsxImport, file));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue