Skip to content

Commit b424032

Browse files
committed
fix: Delete useless rollup options to fix #198
1 parent 841c3ac commit b424032

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

web/vite.config.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,6 @@ export default defineConfig(({ mode }) => {
1515
base: env.VITE_BASE_URL || '/',
1616
plugins: [react()],
1717
build: {
18-
rollupOptions: {
19-
output: {
20-
manualChunks: (id) => {
21-
// Separate vendor chunks to avoid the rollup bug
22-
if (id.includes('node_modules')) {
23-
if (id.includes('katex')) return 'katex';
24-
if (id.includes('highlight.js')) return 'highlight';
25-
if (id.includes('monaco-editor')) return 'monaco';
26-
if (id.includes('react')) return 'react';
27-
return 'vendor';
28-
}
29-
}
30-
},
31-
onwarn(warning, warn) {
32-
// Suppress certain warnings that might trigger the bug
33-
if (warning.code === 'EVAL') return;
34-
if (warning.code === 'CIRCULAR_DEPENDENCY') return;
35-
warn(warning);
36-
}
37-
},
3818
target: 'esnext',
3919
minify: 'esbuild',
4020
sourcemap: false,

0 commit comments

Comments
 (0)