@@ -14,68 +14,68 @@ export default defineConfig({
1414 host : 'localhost' ,
1515 port : 5173
1616 } ,
17- build : {
18- rollupOptions : {
19- output : {
20- manualChunks : {
21- // Separate admin components into their own chunk
22- admin : [
23- './src/components/Admin/AdminChallenges.tsx' ,
24- './src/components/Admin/Users.tsx' ,
25- './src/components/Admin/Dashboard.tsx' ,
26- './src/components/Admin/addChallenges.tsx' ,
27- './src/components/Admin/ChallengeDetails.tsx' ,
28- './src/components/Admin/sidebar.tsx' ,
29- './src/components/Admin/index.tsx' ,
30- './src/components/Admin/home.tsx' ,
31- './src/components/Admin/datepicker.tsx' ,
32- './src/components/Admin/shared/AnimatedCounter.tsx' ,
33- './src/components/Admin/shared/Badge.tsx' ,
34- './src/components/Admin/shared/Button.tsx' ,
35- './src/components/Admin/shared/SkeletonLoader.tsx' ,
36- './src/components/Admin/shared/types.ts'
37- ] ,
38- // Separate vendor libraries
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- ] ,
76- }
77- }
78- } ,
79- chunkSizeWarningLimit : 1000
80- }
17+ // build: {
18+ // rollupOptions: {
19+ // output: {
20+ // manualChunks: {
21+ // // Separate admin components into their own chunk
22+ // admin: [
23+ // './src/components/Admin/AdminChallenges.tsx',
24+ // './src/components/Admin/Users.tsx',
25+ // './src/components/Admin/Dashboard.tsx',
26+ // './src/components/Admin/addChallenges.tsx',
27+ // './src/components/Admin/ChallengeDetails.tsx',
28+ // './src/components/Admin/sidebar.tsx',
29+ // './src/components/Admin/index.tsx',
30+ // './src/components/Admin/home.tsx',
31+ // './src/components/Admin/datepicker.tsx',
32+ // './src/components/Admin/shared/AnimatedCounter.tsx',
33+ // './src/components/Admin/shared/Badge.tsx',
34+ // './src/components/Admin/shared/Button.tsx',
35+ // './src/components/Admin/shared/SkeletonLoader.tsx',
36+ // './src/components/Admin/shared/types.ts'
37+ // ],
38+ // // Separate vendor libraries
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+ // ],
76+ // }
77+ // }
78+ // },
79+ // chunkSizeWarningLimit: 1000
80+ // }
8181} )
0 commit comments