From 04110516fa25ac3e6fb31e557271e68e1d6b0536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Tue, 27 Aug 2024 16:14:14 +0800 Subject: [PATCH] chore: Update vite.config.ts --- vite.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/vite.config.ts b/vite.config.ts index ff548ff..48fbfba 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -40,6 +40,7 @@ export default defineConfig(({ mode, command }) => { sourcemap: mode !== 'production' || env.VITE_SOURCE_MAP === 'true', rollupOptions: { onwarn: (warning, warn) => { + if (warning.code === 'EMPTY_BUNDLE') return; if (warning.code === 'EVAL' && warning.message.includes('node_modules/.pnpm/eruda')) return; warn(warning); },