For AI agents: the complete documentation index is available at https://mfdoctor.kevinbeier.com/llms.txt, the full documentation bundle is available at https://mfdoctor.kevinbeier.com/llms-full.txt, and this page is available as Markdown at https://mfdoctor.kevinbeier.com/rules/performance/vite-bundle-all-css.md.

performance/vite-bundle-all-css

  • Category: performance
  • Default severity: warning

Issue

Vite attaches all bundle CSS to every expose, which can duplicate transfer and style work.

How to fix it

Disable bundleAllCSS unless every expose needs the complete stylesheet set.

Suppress or retarget with rules["performance/vite-bundle-all-css"] set to "off" or a severity — see Suppressions and allowlists.

Sources