From 7128a8c0416cb01d9fb81987ca432cf95c926b4a Mon Sep 17 00:00:00 2001 From: jianf <2198972886@qq.com> Date: Mon, 17 Aug 2026 12:10:00 +0800 Subject: [PATCH] =?UTF-8?q?chore(web):=20tsconfig=20=E6=98=BE=E5=BC=8F?= =?UTF-8?q?=E5=A3=B0=E6=98=8E=20node=20=E7=B1=BB=E5=9E=8B=E4=BE=9B=20vite.?= =?UTF-8?q?config.ts=20=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit types: [node, vite/client] 替代 @vue/tsconfig 默认的空 types(避免 process 未定义);@types/node 已加入 devDependency --- web/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/web/tsconfig.json b/web/tsconfig.json index c8d5857..5405fcb 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -12,6 +12,7 @@ "noEmit": true, "jsx": "preserve", "strict": true, + "types": ["node", "vite/client"], "noUnusedLocals": true, "noUnusedParameters": true, "noFallthroughCasesInSwitch": true