Skip to content

Commit fe17db6

Browse files
committed
Preserve JSX during TS compilation for correct component detection by React Compiler
1 parent 3f4caa8 commit fe17db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"allowJs": false, /* Allow javascript files to be compiled. */
1111
// "checkJs": true, /* Report errors in .js files. */
1212
// The react-native mode is the equivalent of preserve in that it keeps all JSX, but the output will instead have a .js file extension
13-
"jsx": "react-jsx", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
13+
"jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */
1414
// "declaration": true, /* Generates corresponding '.d.ts' file. */
1515
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
1616
// "sourceMap": true, /* Generates corresponding '.map' file. */

0 commit comments

Comments
 (0)