{ "compilerOptions": { "target": "esnext", "useDefineForClassFields": true, "module": "esnext", "moduleResolution": "node", "strict": true, "jsx": "preserve", "sourceMap": true, "resolveJsonModule": true, "esModuleInterop": true, "noImplicitAny": false, "lib": ["esnext", "dom"], // "suppressImplicitAnyIndexErrors": true, //解决用字符串做下标报错 "skipLibCheck": true, //解决打包报`vue-tsc --noEmit && vite build`的错,忽略所有的声明文件(*.d.ts)的类型检查 "baseUrl": ".", "paths": { "@/*": [ "src/*" ] } }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], // ts 排除的文件 "exclude": ["node_modules"] }