From 251d0ab84b533ae55171616119f371a503be54c1 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Wed, 19 Apr 2023 22:28:54 +0800 Subject: [PATCH] fix(build): do not repeatedly output warning message (#12910) --- packages/vite/src/node/build.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vite/src/node/build.ts b/packages/vite/src/node/build.ts index 26f80c9b37a72c..f7285332671b91 100644 --- a/packages/vite/src/node/build.ts +++ b/packages/vite/src/node/build.ts @@ -904,6 +904,7 @@ export function onRollupWarning( colors.yellow(`[plugin:${warning.plugin}]`), )} ${colors.yellow(warning.message)}`, ) + return } warn(warning)