chore: 忽略 run dev 时 vite5 报 cjs 的警告

如果你想暂时忽略警告,你可以通过 VITE_CJS_IGNORE_WARNING=true 标志运行你的脚本
This commit is contained in:
xiangshu233 2024-02-25 17:05:26 +08:00
parent 6daba832d5
commit 4651004c89

View File

@ -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",