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',