File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed
Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -100,31 +100,6 @@ export default defineConfig(({ mode }) => ({
100100 entryFileNames : 'assets/[name].[hash].js' ,
101101 chunkFileNames : 'assets/[name].[hash].js' ,
102102 assetFileNames : 'assets/[name].[hash].[ext]' ,
103- // Fine-grained vendor chunking to keep initial payloads small and improve caching
104- manualChunks ( id ) {
105- if ( id . includes ( 'node_modules' ) ) {
106- if ( id . includes ( 'react' ) && ! id . includes ( 'recharts' ) )
107- return 'vendor-react' ;
108- if (
109- id . includes ( 'codemirror' ) ||
110- id . includes ( '@uiw/react-codemirror' )
111- )
112- return 'vendor-codemirror' ;
113- if (
114- id . includes ( 'remark' ) ||
115- id . includes ( 'rehype' ) ||
116- id . includes ( 'unified' ) ||
117- id . includes ( 'react-markdown' )
118- )
119- return 'vendor-markdown' ;
120- if ( id . includes ( 'mermaid' ) ) return 'vendor-mermaid' ;
121- if ( id . includes ( 'reactflow' ) ) return 'vendor-reactflow' ;
122- if ( id . includes ( 'framer-motion' ) ) return 'vendor-motion' ;
123- if ( id . includes ( 'katex' ) ) return 'vendor-katex' ;
124- if ( id . includes ( 'lodash' ) ) return 'vendor-lodash' ;
125- }
126- return undefined ;
127- } ,
128103 } ,
129104 } ,
130105 } ,
You can’t perform that action at this time.
0 commit comments