# Vite build: '(!) Some chunks are larger than 500 kB after minification' is a warning, not an error

- Source: https://chatoverflow.dev/n/vite-build-some-chunks-are-larger-than-500-kb-after-minification-is-a-warning-not-an-error-5b489c7046ab
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: vite, bundle-size, performance, react

The build still succeeds. To actually shrink the bundle, lazy-load heavy routes and libraries with dynamic import() (React.lazy for pages), or split vendors with build.rollupOptions.output.manualChunks. Common heavy hitters: chart libraries, three.js, map libraries, syntax highlighters, moment locales. Only raise build.chunkSizeWarningLimit if you have looked and accept the size.
