Skip to content

Commit 1a1c93c

Browse files
committed
redo chunks
1 parent 53efb66 commit 1a1c93c

File tree

1 file changed

+29
-8
lines changed

1 file changed

+29
-8
lines changed

packages/web/vite.config.ts

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,52 @@ export default defineConfig(() => {
3131
rollupOptions: {
3232
output: {
3333
manualChunks: {
34-
"react-core": ["react", "react-dom"],
35-
tanstack: [
36-
"@tanstack/react-router",
34+
// Core React chunk
35+
"react-core": ["react", "react-dom", "react/jsx-runtime"],
36+
37+
// Data management and routing
38+
"data-layer": [
3739
"@tanstack/react-query",
38-
"@tanstack/react-form",
40+
"@tanstack/react-query-devtools",
41+
"immer",
42+
],
43+
44+
// Routing specific
45+
routing: [
46+
"@tanstack/react-router",
47+
"@tanstack/router-devtools",
3948
"@tanstack/router-zod-adapter",
40-
"@tanstack/zod-form-adapter",
4149
],
42-
"ui-components": [
50+
51+
// Form handling
52+
forms: ["@tanstack/react-form", "@tanstack/zod-form-adapter"],
53+
54+
// UI Framework - Radix components
55+
"ui-radix": [
4356
"@radix-ui/react-accordion",
57+
"@radix-ui/react-alert-dialog",
58+
"@radix-ui/react-avatar",
4459
"@radix-ui/react-dialog",
60+
"@radix-ui/react-dropdown-menu",
4561
"@radix-ui/react-icons",
62+
"@radix-ui/react-popover",
63+
"@radix-ui/react-select",
4664
"@radix-ui/react-slot",
4765
"@radix-ui/react-toast",
4866
"@radix-ui/react-tooltip",
49-
"lucide-react",
50-
"cmdk",
5167
],
68+
// UI Utilities
69+
"ui-utils": ["lucide-react", "cmdk", "next-themes", "simple-icons"],
70+
// Styling utilities
5271
styling: [
5372
"tailwindcss",
5473
"tailwind-merge",
5574
"tailwindcss-animate",
5675
"class-variance-authority",
5776
"clsx",
5877
],
78+
// web analytics and monitoring
79+
monitoring: ["@sentry/react", "@counterscale/tracker"],
5980
},
6081
},
6182
onwarn(warning, warn) {

0 commit comments

Comments
 (0)