vite-bundle-optimization

Installation
SKILL.md

Vite Bundle Optimization

Table of Contents

Production-ready patterns for optimizing bundle size and build performance in Vite + React applications. These patterns leverage Vite's architecture (native ESM in dev, Rollup in production) to deliver smaller, faster bundles.

When to Use

Reference these patterns when:

  • Setting up a new Vite + React project for production
  • Analyzing bundle size with npx vite-bundle-visualizer
  • Build times are slow or bundles are unexpectedly large
  • Migrating from webpack/CRA to Vite
  • Optimizing Core Web Vitals (LCP, FID/INP, CLS)
Related skills
Installs
304
GitHub Stars
202
First Seen
Mar 30, 2026