From 4651004c8956b1cbb74c6010ef0519df0999cc39 Mon Sep 17 00:00:00 2001 From: xiangshu233 Date: Sun, 25 Feb 2024 17:05:26 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20:rewind:=20=E5=BF=BD=E7=95=A5=20run=20?= =?UTF-8?q?dev=20=E6=97=B6=20vite5=20=E6=8A=A5=20cjs=20=E7=9A=84=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 如果你想暂时忽略警告,你可以通过 VITE_CJS_IGNORE_WARNING=true 标志运行你的脚本 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 49e1f32..1f9db9a 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "preinstall": "npx only-allow pnpm", "bootstrap": "pnpm install", "serve": "npm run dev", - "dev": "vite", + "dev": "cross-env VITE_CJS_IGNORE_WARNING=true vite dev", "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",