Skip to content

Commit 004f184

Browse files
committed
feat: Enhance Vite config by expanding vendor libraries and organizing UI components
1 parent cf271f6 commit 004f184

File tree

1 file changed

+38
-4
lines changed

1 file changed

+38
-4
lines changed

client-test/vite.config.ts

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,46 @@ export default defineConfig({
3636
'./src/components/Admin/shared/types.ts'
3737
],
3838
// Separate vendor libraries
39-
vendor: ['react', 'react-dom', 'react-router-dom', 'react-hot-toast'],
40-
// UI libraries
41-
ui: ['lucide-react', 'react-icons']
39+
vendor: [
40+
'react',
41+
'react-dom',
42+
'react-router-dom',
43+
'react-hot-toast',
44+
'lucide-react',
45+
'react-icons',
46+
// Radix UI components
47+
'@radix-ui/react-avatar',
48+
'@radix-ui/react-checkbox',
49+
'@radix-ui/react-dialog',
50+
'@radix-ui/react-label',
51+
'@radix-ui/react-popover',
52+
'@radix-ui/react-progress',
53+
'@radix-ui/react-radio-group',
54+
'@radix-ui/react-scroll-area',
55+
'@radix-ui/react-select',
56+
'@radix-ui/react-slider',
57+
'@radix-ui/react-slot',
58+
'@radix-ui/react-tabs',
59+
'@radix-ui/react-toast',
60+
'@radix-ui/react-tooltip',
61+
// Other React UI libraries
62+
'framer-motion',
63+
'react-chartjs-2',
64+
'react-easy-crop',
65+
'recharts',
66+
'@tsparticles/react',
67+
'@tsparticles/slim',
68+
// Utility libraries
69+
'clsx',
70+
'tailwind-merge',
71+
'class-variance-authority',
72+
'zustand',
73+
'axios',
74+
'js-cookie'
75+
],
4276
}
4377
}
4478
},
45-
chunkSizeWarningLimit: 1000 // Increase limit to 1000kb
79+
chunkSizeWarningLimit: 1000
4680
}
4781
})

0 commit comments

Comments
 (0)