Skip to content

Commit 23842e6

Browse files
committed
fix: don't bundle css-tree with accordion
1 parent 638fe06 commit 23842e6

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

apps/website/vite.config.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,20 @@ export default defineConfig(async () => {
9898
build: {
9999
target: 'es2022',
100100
rollupOptions: {
101-
// output,
101+
output: {
102+
manualChunks: (id: string) => {
103+
if (id.includes('css-tree')) {
104+
return 'css-tree';
105+
}
106+
if (
107+
id.includes('tailwind-merge') ||
108+
id.includes('clsx') ||
109+
id.includes('cn')
110+
) {
111+
return 'tailwind-merge';
112+
}
113+
},
114+
},
102115
},
103116
},
104117
preview: {

0 commit comments

Comments
 (0)