File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments