Skip to content

Commit 30fc0bf

Browse files
Darius Tallianschmitz
Darius Tall
authored andcommittedAug 4, 2019
Suggest jsx: "react" in tsconfig (#7472)
1 parent 032cdf7 commit 30fc0bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,8 @@ function verifyTypeScriptSetup() {
125125
isolatedModules: { value: true, reason: 'implementation limitation' },
126126
noEmit: { value: true },
127127
jsx: {
128-
parsedValue: ts.JsxEmit.Preserve,
129-
value: 'preserve',
130-
reason: 'JSX is compiled by Babel',
128+
parsedValue: ts.JsxEmit.React,
129+
suggested: 'react',
131130
},
132131
paths: { value: undefined, reason: 'aliased imports are not supported' },
133132
};

0 commit comments

Comments
 (0)