From 5de4e410228594062bcb8a55e49f4f8d2dc530b0 Mon Sep 17 00:00:00 2001 From: xiangshu233 Date: Sat, 24 Feb 2024 21:49:02 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20:rewind:=20=E5=A2=9E=E5=8A=A0=20cjs=20?= =?UTF-8?q?=E8=AD=A6=E5=91=8A=E8=BF=BD=E8=B8=AA=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 如果您不确定警告来自何处,可以使用 VITE_CJS_TRACE=true 标志运行脚本来记录堆栈跟踪 see: https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 80048e1..7f24329 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "bootstrap": "pnpm install", "serve": "npm run dev", "dev": "vite", + "dev:debugcjs": "cross-env VITE_CJS_TRACE=true vite dev", "build": "cross-env NODE_ENV=production vite build && esno ./build/script/postBuild.ts", "build:no-cache": "pnpm clean:cache && npm run build", "report": "cross-env REPORT=true npm run build",