build(tsconfig.json): 处理tsconfig.json

This commit is contained in:
Burt 2023-12-21 15:31:57 +08:00
parent 11629b2c11
commit ef3d72bc43
2 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,4 @@
{ {
"extends": "@vue/tsconfig/tsconfig.json",
"compilerOptions": { "compilerOptions": {
"sourceMap": true, "sourceMap": true,
"baseUrl": ".", "baseUrl": ".",
@ -9,5 +8,6 @@
"lib": ["esnext", "dom"], "lib": ["esnext", "dom"],
"types": ["@dcloudio/types"] "types": ["@dcloudio/types"]
}, },
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }]
} }

10
tsconfig.node.json Normal file
View File

@ -0,0 +1,10 @@
{
"compilerOptions": {
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}