vite/analyze

Bundle Analysis

Analyze bundle size and composition

vite
analyze
bundle

Command

npm install -D rollup-plugin-visualizer

Explanation

Use bundle analyzers to understand what's included in your build and optimize bundle size.

Examples

Install bundle analyzer

npm install -D rollup-plugin-visualizer

Build with analysis

npm run build -- --analyze