From 4085c7304167284e7169f2ae12bb03a0aa256b3c Mon Sep 17 00:00:00 2001 From: Silberengel Date: Mon, 9 Feb 2026 21:55:56 +0100 Subject: [PATCH] suppress build warnings --- vite.config.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 395fc3d..49d9ff4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -35,6 +35,19 @@ export default defineConfig({ '@': path.resolve(__dirname, './src') } }, + build: { + rollupOptions: { + onwarn(warning, warn) { + // Suppress vite:reporter warnings about mixed static/dynamic imports + // These are informational warnings about code splitting, not errors + if (warning.plugin === 'vite:reporter' && warning.message.includes('dynamically imported') && warning.message.includes('statically imported')) { + return + } + // Use default warning handler for other warnings + warn(warning) + } + } + }, test: { globals: true, environment: 'jsdom',