{ "compilerOptions": { "composite": true, "skipLibCheck": true, "module": "ESNext", "moduleResolution": "bundler", "allowSyntheticDefaultImports": true, "strict": true, // composite 隐含 declaration,会把 vite.config.ts 编译出 vite.config.js / .d.ts。 // 而 Vite 加载配置时 .js 优先级高于 .ts,那份陈旧产物会顶掉真正的 vite.config.ts // (曾导致 server.proxy 失效、接口请求 404 / Failed to fetch)。 // 这里只做类型检查,不产出任何文件;tsBuildInfo 也移出源码目录。 "noEmit": true, "emitDeclarationOnly": false, "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo" }, "include": ["vite.config.ts"] }