修复 pnpm run builde 报错

This commit is contained in:
2026-09-10 01:39:18 +08:00
parent 7500d3ab56
commit d578a81b74
11 changed files with 43 additions and 28 deletions
+5
View File
@@ -210,6 +210,11 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
},
},
rollupOptions: {
onwarn(warning, warn) {
// 忽略 @vueuse/core 依赖中 #__PURE__ 注释位置导致的无效注释警告(仅移除注释,无行为影响)
if (warning.code === "INVALID_ANNOTATION") return;
warn(warning);
},
output: {
manualChunks: {
vue: ["vue", "vue-router", "pinia"],