Skip to content

Commit 8fb977f

Browse files
authored
Make jsx: react the default for implicit js/ts projects (microsoft#152256)
Make jsx: react the default Fixes microsoft#152150 This fixes imports of `react` getting removed with TS 4.7 in implicit projects
1 parent 88c01e4 commit 8fb977f

File tree

1 file changed

+1
-1
lines changed
  • extensions/typescript-language-features/src/utils

1 file changed

+1
-1
lines changed

extensions/typescript-language-features/src/utils/tsconfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const defaultProjectConfig = Object.freeze<Proto.ExternalProjectCompilerOptions>
2626
module: 'ESNext' as Proto.ModuleKind,
2727
moduleResolution: 'Node' as Proto.ModuleResolutionKind,
2828
target: 'ES2020' as Proto.ScriptTarget,
29-
jsx: 'preserve' as Proto.JsxEmit,
29+
jsx: 'react' as Proto.JsxEmit,
3030
});
3131

3232
export function inferredProjectCompilerOptions(

0 commit comments

Comments
 (0)