Make jsx: react the default for implicit js/ts projects (#152256)

Make jsx: react the default

Fixes #152150

This fixes imports of `react` getting removed with TS 4.7 in implicit projects
This commit is contained in:
Matt Bierner
2022-06-15 14:41:52 -07:00
committed by GitHub
parent 88c01e4825
commit 8fb977f2c1

View File

@@ -26,7 +26,7 @@ const defaultProjectConfig = Object.freeze<Proto.ExternalProjectCompilerOptions>
module: 'ESNext' as Proto.ModuleKind,
moduleResolution: 'Node' as Proto.ModuleResolutionKind,
target: 'ES2020' as Proto.ScriptTarget,
jsx: 'preserve' as Proto.JsxEmit,
jsx: 'react' as Proto.JsxEmit,
});
export function inferredProjectCompilerOptions(