cli:update config to support tsx

This commit is contained in:
pengfei.zhou
2021-08-31 20:05:23 +08:00
committed by osborn
parent 7a0a2c6621
commit cde8d1726f
4 changed files with 21 additions and 18 deletions

View File

@@ -7,7 +7,9 @@
"lib": [], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"jsxFactory": "JSX.createElement",
"jsxFragmentFactory": "JSX.Fragment",
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
@@ -58,5 +60,6 @@
},
"include": [
"**/*.ts",
"**/*.tsx",
]
}