chore: Update vite.config.ts
All checks were successful
CI / cache-and-install (push) Successful in 1m30s

This commit is contained in:
严浩
2024-08-27 16:14:14 +08:00
parent ceca53a8bf
commit 04110516fa

View File

@ -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);
},