Skip to content

Commit 112e781

Browse files
authored
Adjust Vite manual bundles (#4042)
1 parent fb47466 commit 112e781

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

helm-frontend/vite.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ export default () => {
3535
environment: "jsdom",
3636
},
3737
build: {
38+
chunkSizeWarningLimit: 600,
3839
rollupOptions: {
3940
output: {
40-
// Manually chunk large libraries to keep chunk size under 500 KB
41+
// Manually chunk large libraries to keep chunk size under 600 KB
4142
manualChunks: {
42-
react: ["react", "react-dom", "react-router-dom", "react-spinners", "recharts"],
43+
react: ["react", "react-dom", "react-router-dom", "react-spinners"],
44+
recharts: ["recharts"],
4345
tremor: ["@tremor/react"],
4446
"react-markdown": ["react-markdown"],
4547
}

0 commit comments

Comments
 (0)