- 包管理和运行时换成 Bun:bun.lock 取代 package-lock.json,脚本用 bun --bun 运行, CI 改用 oven-sh/setup-bun(1.4.4,与后端镜像一致) - 构建工具从 Rsbuild 换成 Vite 8,沿用 PUBLIC_ 环境变量前缀和 3000 端口; 浏览器目标保持 Chrome 87 起(机房是 Chrome 105),用 plugin-legacy 按需注入 core-js(toSorted 等),不生成旧浏览器的兼容包 - fmt 改用 Bun 自带的格式化,配置从 .prettierrc.toml 移到 bunfig.toml; prettier 包仍保留,编辑器里的「整理」按钮在浏览器里用它 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
593 B
JSON
25 lines
593 B
JSON
{
|
|
"compilerOptions": {
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
"target": "ES2022",
|
|
"lib": ["ES2023"],
|
|
"module": "ESNext",
|
|
"skipLibCheck": true,
|
|
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"isolatedModules": true,
|
|
"moduleDetection": "force",
|
|
"noEmit": true,
|
|
|
|
/* Linting */
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUncheckedSideEffectImports": true
|
|
},
|
|
"include": ["vite.config.ts"]
|
|
}
|