修复 pnpm run builde 报错
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user