From e5ecc48cecc350026996b65287df404068dbd033 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Wed, 19 Apr 2023 22:13:29 +0800 Subject: [PATCH] fix(build): do not repeatedly output warning message --- 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)