We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23842e6 commit 72a204bCopy full SHA for 72a204b
apps/website/vite.config.ts
@@ -100,15 +100,14 @@ export default defineConfig(async () => {
100
rollupOptions: {
101
output: {
102
manualChunks: (id: string) => {
103
- if (id.includes('css-tree')) {
+ if (id.includes('node-modules') && id.includes('css-tree')) {
104
return 'css-tree';
105
}
106
if (
107
- id.includes('tailwind-merge') ||
108
- id.includes('clsx') ||
109
- id.includes('cn')
+ id.includes('node-modules') &&
+ (id.includes('tailwind-merge') || id.includes('clsx'))
110
) {
111
- return 'tailwind-merge';
+ return 'cn';
112
113
},
114
0 commit comments