fix: 移除 fork-ts-checker 插件,修复与 TypeScript 5 的兼容性错误

This commit is contained in:
灌糖包子 2026-03-20 00:37:47 +08:00
parent 90a6153776
commit 83731771a1
Signed by: sookie
GPG Key ID: 0599BECB75C1E68D

View File

@ -28,6 +28,11 @@ module.exports = defineConfig({
})
]
},
chainWebpack: config => {
// fork-ts-checker-webpack-plugin v6 与 TypeScript 5 不兼容(无法覆写只读的 performance.mark
// 类型检查改由 tsc --noEmit 承担
config.plugins.delete('fork-ts-checker')
},
devServer: {
port: 8080,
proxy: {