Skip to content

Commit fec0299

Browse files
argenisleonclaude
andcommitted
fix: convert manualChunks to function for Vite 8/Rolldown compatibility
Vite 8 (Rolldown) no longer supports manualChunks as an object, only as a function. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fb397cd commit fec0299

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/client/vite.config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ export default defineConfig(({ mode }) => {
2222
build: {
2323
rollupOptions: {
2424
output: {
25-
manualChunks: {
26-
markdown: ['react-markdown', 'remark-gfm'],
27-
motion: ['motion'],
28-
syntax: ['shiki'],
29-
monaco: ['@monaco-editor/react'],
30-
mermaid: ['mermaid'],
31-
tiptap: ['@tiptap/react', '@tiptap/core'],
25+
manualChunks(id: string) {
26+
if (id.includes('react-markdown') || id.includes('remark-gfm')) return 'markdown';
27+
if (id.includes('/motion/')) return 'motion';
28+
if (id.includes('/shiki/')) return 'syntax';
29+
if (id.includes('@monaco-editor/react')) return 'monaco';
30+
if (id.includes('/mermaid/')) return 'mermaid';
31+
if (id.includes('@tiptap/react') || id.includes('@tiptap/core')) return 'tiptap';
3232
},
3333
},
3434
},

0 commit comments

Comments
 (0)