Skip to content

Commit a4ad371

Browse files
committed
fix(web): 允许 esbuild postinstall 脚本以修复 Vite 模块缺失
pnpm v10 默认阻止依赖包的构建脚本,导致 esbuild 无法 下载平台原生二进制,Vite 运行时报 Cannot find module 错误。
1 parent 2a98210 commit a4ad371

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

web/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
"tw-animate-css": "^1.4.0",
5353
"zustand": "^5.0.9"
5454
},
55+
"pnpm": {
56+
"onlyBuiltDependencies": [
57+
"esbuild"
58+
]
59+
},
5560
"devDependencies": {
5661
"@eslint/js": "^9.39.1",
5762
"@tailwindcss/postcss": "^4.1.18",

0 commit comments

Comments
 (0)