|
|
|
|
@ -143,6 +143,18 @@ export default defineConfig({
@@ -143,6 +143,18 @@ export default defineConfig({
|
|
|
|
|
drop_console: ['log', 'debug'], // Remove console.log and console.debug in production, keep error/warn
|
|
|
|
|
passes: 2, // Multiple passes for better compression
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
rollupOptions: { |
|
|
|
|
onwarn(warning, warn) { |
|
|
|
|
// Suppress warning about highlight.js default import - it's used in reactive contexts that Vite can't detect
|
|
|
|
|
if (warning.message &&
|
|
|
|
|
typeof warning.message === 'string' && |
|
|
|
|
warning.message.includes('highlight.js') && |
|
|
|
|
warning.message.includes('never used')) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
warn(warning); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|