feat: 新增 jsx/tsx 支持

Former-commit-id: a7e79341d7e4c6d89b64e733834810e92b295bd6
This commit is contained in:
hxr
2023-10-22 00:03:41 +08:00
parent 32955fd390
commit 6b5cbba7cd
4 changed files with 50 additions and 3 deletions

View File

@@ -6,7 +6,6 @@
"moduleResolution": "node",
"strict": true,
"noLib": false,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
@@ -19,7 +18,11 @@
"types": ["vite/client", "unplugin-icons/types/vue"],
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"allowSyntheticDefaultImports": true /* */,
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
"jsx": "preserve",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment"
},
"include": [
"src/**/*.ts",
@@ -29,5 +32,4 @@
"vite.config.ts"
],
"exclude": ["node_modules", "dist", "**/*.js"]
// "references": [{ "path": "./tsconfig.node.json" }]
}