{ // 继承自 @tsconfig/node20 的默认配置 "extends": "@tsconfig/node20/tsconfig.json", // 包含文件 "include": [ "vite.config.ts", // "vitest.config.*", // "cypress.config.*", // "nightwatch.conf.*", // "playwright.config.*" ], "compilerOptions": { // 启用项目引用功能 "composite": true, // 不生成任何输出文件 "noEmit": true, // 指定 TypeScript 编译过程中的增量编译信息存储位置 "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", // 设置生成的 JavaScript 模块系统为 ESNext "module": "ESNext", // 指定模块解析策略为 Bundler "moduleResolution": "bundler", // 允许从没有默认导出的模块中进行默认导入 "allowSyntheticDefaultImports": true, // 包含 Node.js 的类型定义 "types": [ "node" ] } }