# Built-in bundle analysis

Feature 11 of 14, in the group "Other features". Labels across 23 meta-frameworks: 2 1st-party, 1 Experimental, 19 Third-party, 1 Manual.

## What it is and why it matters

A bundle analyzer shows which modules make up each JavaScript bundle so you can find large dependencies. Only the Next port has an analysis step configured (`pnpm analyze` runs `next analyze`); none of the other ports do, so the rest of this section is capability only. Vite DevTools ships [DevTools for Rolldown](https://devtools.vite.dev/rolldown/#features) (`@vitejs/devtools-rolldown`), an ecosystem-level analyzer for production builds on Vite 8+. It is available to the ports on Vite 8 (not the Qwik and Fresh ports, which are on Vite 7) and is not counted in these labels.

## Gotchas

- Run the analyzer against a production build; development bundles are not representative.

## Labels

| Framework | Label | Points |
| --- | --- | --- |
| [Next](https://framework-compare.vercel.app/frameworks/next.md) | 1st-party | 2 |
| [Nuxt](https://framework-compare.vercel.app/frameworks/nuxt.md) | Experimental | 1 |
| [SvelteKit](https://framework-compare.vercel.app/frameworks/sveltekit.md) | Third-party | 1 |
| [SolidStart](https://framework-compare.vercel.app/frameworks/solidstart.md) | Third-party | 1 |
| [TanStack Start (React)](https://framework-compare.vercel.app/frameworks/tanstack-start-react.md) | Third-party | 1 |
| [TanStack Start (Solid)](https://framework-compare.vercel.app/frameworks/tanstack-start-solid.md) | Third-party | 1 |
| [Pracht](https://framework-compare.vercel.app/frameworks/pracht.md) | 1st-party | 2 |
| [Waku](https://framework-compare.vercel.app/frameworks/waku.md) | Third-party | 1 |
| [Ember](https://framework-compare.vercel.app/frameworks/ember.md) | Third-party | 1 |
| [Astro](https://framework-compare.vercel.app/frameworks/astro.md) | Third-party | 1 |
| [React Router](https://framework-compare.vercel.app/frameworks/react-router.md) | Third-party | 1 |
| [Qwik City](https://framework-compare.vercel.app/frameworks/qwik-city.md) | Third-party | 1 |
| [Angular (SSR)](https://framework-compare.vercel.app/frameworks/angular.md) | Third-party | 1 |
| [Marko](https://framework-compare.vercel.app/frameworks/marko.md) | Third-party | 1 |
| [Fresh](https://framework-compare.vercel.app/frameworks/fresh.md) | Third-party | 1 |
| [Analog](https://framework-compare.vercel.app/frameworks/analog.md) | Third-party | 1 |
| [Vike](https://framework-compare.vercel.app/frameworks/vike.md) | Third-party | 1 |
| [RedwoodSDK](https://framework-compare.vercel.app/frameworks/redwoodsdk.md) | Third-party | 1 |
| [Remix 3](https://framework-compare.vercel.app/frameworks/remix.md) | Manual | 0 |
| [Void (React)](https://framework-compare.vercel.app/frameworks/void-react.md) | Third-party | 1 |
| [Void (Vue)](https://framework-compare.vercel.app/frameworks/void-vue.md) | Third-party | 1 |
| [Void (Svelte)](https://framework-compare.vercel.app/frameworks/void-svelte.md) | Third-party | 1 |
| [Void (Solid)](https://framework-compare.vercel.app/frameworks/void-solid.md) | Third-party | 1 |

## How to enable it in each framework

### Next

Label: **1st-party** (2 of 2 points).

The Turbopack bundle analyzer ([guide](https://nextjs.org/docs/app/guides/package-bundling)) shipped in v16.1 as `next experimental-analyze` and is `next analyze` as of v16.4.0 (the old name remains an alias). It opens the Turbopack module graph with per-route client/server filtering; `--output` saves a static report and `next analyze export` (v16.4.0+) streams the saved data. This port runs 16.4.6 and uses `next analyze`. The same guide covers the `@next/bundle-analyzer` plugin for webpack builds.

```bash
npx next analyze
npx next analyze --output
```

*From [the package bundling guide](https://nextjs.org/docs/app/guides/package-bundling).*

### Nuxt

Label: **Experimental** (1 of 2 points).

[`nuxt analyze`](https://nuxt.com/docs/4.x/api/commands/analyze) (experimental) builds the app and serves client and Nitro reports; `--json` writes machine-readable output.

```bash
npx nuxt analyze [ROOTDIR] [--serve] [--prerender] [--json]
```

*Adapted from [the analyze command docs](https://nuxt.com/docs/4.x/api/commands/analyze) (other flags omitted).* With Nuxt 5 behaviour the Nitro report needs `rollup-plugin-visualizer`. The non-experimental [`build.analyze`](https://nuxt.com/docs/4.x/api/nuxt-config#analyze) config option also writes a client-bundle report during a normal `nuxt build`; with the default Vite builder it loads the community `rollup-plugin-visualizer`, which must be installed in the project (optional peer dependency), so the cell stays 🧪.

### SvelteKit

Label: **Third-party** (1 of 2 points).

No built-in analyzer; the [performance docs](https://svelte.dev/docs/kit/performance) suggest [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer) in `vite.config.ts`. Not configured in this port. No config snippet for it was found in the docs.

Example of building it yourself:

Add `rollup-plugin-visualizer` after `sveltekit()` in the Vite config. `vite build` then writes a treemap of the bundle to `stats.html`.

```ts
// vite.config.ts
import { sveltekit } from '@sveltejs/kit/vite';
import tailwindcss from '@tailwindcss/vite';
import { visualizer } from 'rollup-plugin-visualizer';
import { defineConfig } from 'vite';

export default defineConfig({
	plugins: [
		tailwindcss(),
		sveltekit({ /* … */ }),
		visualizer({ filename: 'stats.html', gzipSize: true })
	]
});
```

Source: [SvelteKit: Performance](https://svelte.dev/docs/kit/performance)

### SolidStart

Label: **Third-party** (1 of 2 points).

No first-party analyzer is documented ([archived SolidStart v2 docs](https://v1.solidjs.com/solid-start/v2/building-your-application/static-assets) cover asset handling but no analysis step); [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer) would be added, not configured here.

Example of building it yourself:

Add `rollup-plugin-visualizer` to the port's Vite config. `vite build` then writes a treemap of the bundle to `stats.html`.

```ts
// vite.config.ts
import { nitro } from 'nitro/vite'
import solid from '@solidjs/vite-plugin'
import { visualizer } from 'rollup-plugin-visualizer'
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
    solid({ start: { /* … */ }, ssr: true }),
    nitro({ /* … */ }),
    visualizer({ filename: 'stats.html', gzipSize: true }),
  ],
})
```

Source: [rollup-plugin-visualizer: README](https://github.com/btd/rollup-plugin-visualizer)

### TanStack Start (React)

Label: **Third-party** (1 of 2 points).

No first-party analyzer is documented ([production checklist](https://tanstack.com/start/latest/docs/framework/react/guide/production-checklist)); use [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer), not configured.

Example of building it yourself:

Add `rollup-plugin-visualizer` to the plugin list. `vite build` then writes a treemap of the bundle to `stats.html`.

```ts
// vite.config.ts
import { defineConfig } from 'vite'
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import viteReact from '@vitejs/plugin-react'
import { visualizer } from 'rollup-plugin-visualizer'

export default defineConfig({
  plugins: [
    tanstackStart(),
    viteReact(),
    visualizer({ filename: 'stats.html', gzipSize: true }),
  ],
})
```

Source: [rollup-plugin-visualizer: README](https://github.com/btd/rollup-plugin-visualizer)

### TanStack Start (Solid)

Label: **Third-party** (1 of 2 points).

Same ([Solid hosting guide](https://tanstack.com/start/latest/docs/framework/solid/guide/hosting) documents no analyzer): [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer), not configured.

Example of building it yourself:

Add `rollup-plugin-visualizer` to the plugin list. `vite build` then writes a treemap of the bundle to `stats.html`.

```ts
// vite.config.ts
import { defineConfig } from 'vite'
import { tanstackStart } from '@tanstack/solid-start/plugin/vite'
import viteSolid from '@solidjs/vite-plugin'
import { visualizer } from 'rollup-plugin-visualizer'

export default defineConfig({
  plugins: [
    tanstackStart(),
    viteSolid({ ssr: true }),
    visualizer({ filename: 'stats.html', gzipSize: true }),
  ],
})
```

Source: [rollup-plugin-visualizer: README](https://github.com/btd/rollup-plugin-visualizer)

### Pracht

Label: **1st-party** (2 of 2 points).

[`pracht build --analyze`](https://pracht.resynapse.dev/docs/performance) prints per-route gzip and raw sizes; `--json` for scripts. Per-route `budgets` can fail the build (`--no-budget-fail` to opt out; [CLI](https://pracht.resynapse.dev/docs/cli)).

```bash
pracht build --analyze
```

*From [the performance guide](https://pracht.resynapse.dev/docs/performance).*

### Waku

Label: **Third-party** (1 of 2 points).

No first-party analyzer is documented ([migration guide](https://waku.gg/guides/migrating-from-nextjs) covers none); [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer), not configured here.

Example of building it yourself:

Add `rollup-plugin-visualizer` under `vite.plugins` in `waku.config.ts`. `waku build` then writes a treemap of the bundle to `stats.html`.

```ts
// waku.config.ts
import tailwindcss from '@tailwindcss/vite';
import react from '@vitejs/plugin-react';
import { visualizer } from 'rollup-plugin-visualizer';
import { defineConfig } from 'waku/config';

export default defineConfig({
  vite: {
    plugins: [
      tailwindcss(),
      react(),
      visualizer({ filename: 'stats.html', gzipSize: true }),
    ],
  },
});
```

Source: [rollup-plugin-visualizer: README](https://github.com/btd/rollup-plugin-visualizer)

### Ember

Label: **Third-party** (1 of 2 points).

Embroider's [Analyzing Bundles](https://github.com/embroider-build/embroider/blob/main/docs/analyzing.md) page says no Ember-specific analysis tooling is provided and points to Vite's performance guide and the community `vite-bundle-visualizer` (a CLI over [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer)); not configured here. [ember-cli-bundle-analyzer](https://github.com/simonihmig/ember-cli-bundle-analyzer) covers classic and webpack builds.

Example of building it yourself:

Embroider points to the community `vite-bundle-visualizer`, a CLI wrapper around `rollup-plugin-visualizer`. It builds with the app's Vite config and writes a treemap.

```sh
# in the app root; Ember's config file is vite.config.mjs
npx vite-bundle-visualizer -c vite.config.mjs -o stats.html
```

Source: [Embroider: Analyzing Bundles](https://github.com/embroider-build/embroider/blob/main/docs/analyzing.md)

### Astro

Label: **Third-party** (1 of 2 points).

No first-party analyzer documented; the official recipe adds `rollup-plugin-visualizer`, with a caveat that the report may not match what the client downloads. ([analyze-bundle-size](https://docs.astro.build/en/recipes/analyze-bundle-size/))

Example of building it yourself:

Astro's recipe adds `rollup-plugin-visualizer` as a Vite plugin. `astro build` then writes `stats.html`. The report covers the whole site, not each page.

```js
// astro.config.mjs
import { defineConfig } from 'astro/config';
import { visualizer } from 'rollup-plugin-visualizer';

export default defineConfig({
  vite: {
    plugins: [visualizer({ emitFile: true, filename: 'stats.html' })],
  },
});
```

Source: [Astro: Analyze bundle size](https://docs.astro.build/en/recipes/analyze-bundle-size/)

Gotchas:

- Astro's recipe warns that a visualizer report may not match what the client downloads.

### React Router

Label: **Third-party** (1 of 2 points).

No first-party analyzer documented; the code-splitting page does not mention one; the third-party route is a community Vite/Rollup visualizer such as [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer), added by hand. No React Router page recommends one. ([code-splitting](https://reactrouter.com/explanation/code-splitting))

Example of building it yourself:

Add `rollup-plugin-visualizer` to the Vite config. `react-router build` then writes a treemap of the client bundle to `stats.html`.

```ts
// vite.config.ts
import { reactRouter } from '@react-router/dev/vite'
import tailwindcss from '@tailwindcss/vite'
import { visualizer } from 'rollup-plugin-visualizer'
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
    tailwindcss(),
    reactRouter(),
    visualizer({ filename: 'stats.html', gzipSize: true }),
  ],
})
```

Source: [rollup-plugin-visualizer: README](https://github.com/btd/rollup-plugin-visualizer)

### Qwik City

Label: **Third-party** (1 of 2 points).

No visualizer/analyzer documented. First-party knobs: `qwikVite` `entryStrategy` and `qsymbol`-event analytics. The Insights lab is prototyping-stage. ([bundle](https://qwik.dev/docs/guides/bundle/), [insights](https://qwik.dev/docs/labs/insights/))

Example of building it yourself:

Qwik has no analyzer of its own. Add `rollup-plugin-visualizer` to the base Vite config; `vite build` then writes a treemap of the client bundles.

```ts
// vite.config.ts
import { defineConfig } from 'vite'
import { qwikVite } from '@builder.io/qwik/optimizer'
import { qwikCity } from '@builder.io/qwik-city/vite'
import { visualizer } from 'rollup-plugin-visualizer'

export default defineConfig(() => ({
  plugins: [
    qwikCity(),
    qwikVite(),
    visualizer({ filename: 'stats.html', template: 'treemap', gzipSize: true }),
  ],
}))
```

Source: [rollup-plugin-visualizer: README](https://github.com/btd/rollup-plugin-visualizer), [Qwik: Bundle optimization](https://qwik.dev/docs/guides/bundle/)

### Angular (SSR)

Label: **Third-party** (1 of 2 points).

`ng build --stats-json` writes a stats file for an external esbuild analyzer; default budgets warn 500kb/error 1mb on `initial`. The viewer is external. ([build](https://angular.dev/cli/build), [build](https://angular.dev/tools/cli/build))

Example of building it yourself:

`--stats-json` writes `browser-stats.json` (and `server-stats.json` with SSR). Load it into the esbuild analyzer at esbuild.github.io/analyze. Budgets in `angular.json` fail the build when bundles grow.

```sh
ng build --stats-json
# then open https://esbuild.github.io/analyze/ and load dist/books/browser-stats.json
```

```json
// angular.json, configurations.production
"budgets": [
  { "type": "initial", "maximumWarning": "500kB", "maximumError": "1MB" },
  { "type": "anyComponentStyle", "maximumWarning": "4kB", "maximumError": "8kB" }
]
```

Source: [Angular CLI: ng build](https://angular.dev/cli/build)

### Marko

Label: **Third-party** (1 of 2 points).

The CLI has only `dev`, `build`, `preview`; the Vite plugin options are `routesDir`, `adapter`, `trailingSlashes`. No first-party analyzer documented; Marko Run builds with Vite, so the third-party route is a community visualizer such as [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer). ([cli](https://markojs.com/docs/marko-run/cli), [vite-plugin](https://markojs.com/docs/marko-run/vite-plugin))

Example of building it yourself:

Marko Run builds with Vite, so add `rollup-plugin-visualizer` next to the Marko plugin. `marko-run build` then writes a treemap of the client bundles.

```ts
// vite.config.ts
import { defineConfig } from "vite";
import marko from "@marko/run/vite";
import { visualizer } from "rollup-plugin-visualizer";

export default defineConfig({
  plugins: [
    marko(),
    visualizer({ filename: "stats.html", gzipSize: true, brotliSize: true }),
  ],
});
```

Source: [rollup-plugin-visualizer README](https://github.com/btd/rollup-plugin-visualizer)

### Fresh

Label: **Third-party** (1 of 2 points).

No first-party analyzer documented; the Vite page mentions only `vite-plugin-inspect` as a debugging aid. ([vite](https://usefresh.dev/docs/advanced/vite))

Example of building it yourself:

Fresh has no analyzer. The Vite page suggests `vite-plugin-inspect` for looking at transforms during dev; for bundle sizes, add `rollup-plugin-visualizer` and run `deno task build`.

```ts
// vite.config.ts
import { defineConfig } from "vite";
import { fresh } from "@fresh/plugin-vite";
import inspect from "vite-plugin-inspect";
import { visualizer } from "rollup-plugin-visualizer";

export default defineConfig({
  plugins: [
    fresh(),
    inspect(), // dev UI at /__inspect
    visualizer({ filename: "stats.html", gzipSize: true }),
  ],
});
```

Source: [Fresh: Vite](https://usefresh.dev/docs/advanced/vite)

### Analog

Label: **Third-party** (1 of 2 points).

No first-party analyzer documented; Analog builds with Vite, so the third-party route is a community visualizer such as [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer). ([deployment](https://analogjs.org/docs/features/deployment/overview))

Example of building it yourself:

Add `rollup-plugin-visualizer` to the Vite config. `vite build` then writes a treemap of the client bundle.

```ts
// vite.config.ts (npm install -D rollup-plugin-visualizer)
import analog from '@analogjs/platform';
import { visualizer } from 'rollup-plugin-visualizer';
import { defineConfig } from 'vite';

export default defineConfig(() => ({
  plugins: [
    analog(),
    visualizer({ filename: 'stats.html', gzipSize: true, template: 'treemap' }),
  ],
}));
```

Source: [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer)

### Vike

Label: **Third-party** (1 of 2 points).

No first-party analyzer documented; Vike is a Vite plugin, so the third-party route is a community visualizer such as [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer). ([settings](https://vike.dev/settings))

Example of building it yourself:

Add `rollup-plugin-visualizer` next to the Vike plugin. `vike build` then writes a treemap of the bundle to `stats.html`.

```ts
// vite.config.ts
import vike from 'vike/plugin'
import react from '@vitejs/plugin-react'
import { visualizer } from 'rollup-plugin-visualizer'

export default {
  plugins: [vike(), react(), visualizer({ filename: 'stats.html', gzipSize: true })],
}
```

Source: [rollup-plugin-visualizer README](https://github.com/btd/rollup-plugin-visualizer)

### RedwoodSDK

Label: **Third-party** (1 of 2 points).

No first-party analyzer documented; RedwoodSDK is a Vite plugin, so the third-party route is a community visualizer such as [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer). ([hosting](https://docs.rwsdk.com/core/hosting))

Example of building it yourself:

RedwoodSDK builds with Vite, so add `rollup-plugin-visualizer` to the plugins. The build writes `stats.html` with a treemap of the bundles.

```ts
// vite.config.mts
import { defineConfig, type PluginOption } from "vite";
import { redwood } from "rwsdk/vite";
import { cloudflare } from "@cloudflare/vite-plugin";
import { visualizer } from "rollup-plugin-visualizer";

export default defineConfig({
  plugins: [
    cloudflare({ viteEnvironment: { name: "worker" } }),
    redwood(),
    visualizer({ filename: "stats.html", gzipSize: true }) as PluginOption,
  ],
});
```

Source: [rollup-plugin-visualizer: README](https://github.com/btd/rollup-plugin-visualizer)

### Remix 3

Label: **Manual** (0 of 2 points).

There are no bundles to analyze: the asset server compiles modules on request and the browser loads them one by one. `remix assets` lists every reachable file and `remix assets inspect <url-or-file>` explains one mapping; neither reports sizes. ([files-and-assets](https://docs.remix.run/files-and-assets/), [assets](https://docs.remix.run/api/assets/))

Example of building it yourself:

There is no bundle. The `remix assets` CLI lists every file the browser can reach and explains one URL. It reads the `assets` section of `remix.json` and does not report sizes.

```jsonc
// remix.json
{
  "$schema": "./node_modules/remix/schema/remix.json",
  "assets": {
    "basePath": "/assets",
    "allowFiles": ["app/routes.ts", "app/**/public/**"],
    "allowPackages": ["remix"],
    "files": { "extensions": [".svg", ".png", ".jpg", ".woff2"] }
  }
}
```

```sh
npx remix assets                                   # URL -> file for every reachable file
npx remix assets inspect /assets/app/ui/public/cart.ts
```

Source: [Remix: Files and assets, debug asset URLs with remix assets](https://docs.remix.run/files-and-assets/)

### Void (React)

Label: **Third-party** (1 of 2 points).

No first-party analyzer documented, and the CLI has no analyze command. Void is a Vite plugin, so the third-party route is a community visualizer such as [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer). ([cli](https://void.cloud/reference/cli))

Example of building it yourself:

Void has no analyze command. Add `rollup-plugin-visualizer` to `vite.config.ts` for the client build.

```ts
// vite.config.ts
import { voidReact } from '@void/react/plugin'
import { visualizer } from 'rollup-plugin-visualizer'
import { defineConfig } from 'vite'
import { voidPlugin } from 'void'

export default defineConfig({
  plugins: [
    voidPlugin(),
    voidReact(),
    process.env.ANALYZE && { ...visualizer({ filename: 'dist/stats.html' }), applyToEnvironment: (env) => env.name === 'client' },
  ],
})
```

Source: [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer) · [Void: CLI](https://void.cloud/reference/cli)

### Void (Vue)

Label: **Third-party** (1 of 2 points).

No first-party analyzer documented, and the CLI has no analyze command. Void is a Vite plugin, so the third-party route is a community visualizer such as [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer). ([cli](https://void.cloud/reference/cli))

Example of building it yourself:

Void has no analyze command. Add `rollup-plugin-visualizer` to `vite.config.ts` for the client build.

```ts
// vite.config.ts
import { voidVue } from '@void/vue/plugin'
import { visualizer } from 'rollup-plugin-visualizer'
import { defineConfig } from 'vite'
import { voidPlugin } from 'void'

export default defineConfig({
  plugins: [
    voidPlugin(),
    voidVue(),
    process.env.ANALYZE && { ...visualizer({ filename: 'dist/stats.html' }), applyToEnvironment: (env) => env.name === 'client' },
  ],
})
```

Source: [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer) · [Void: CLI](https://void.cloud/reference/cli)

### Void (Svelte)

Label: **Third-party** (1 of 2 points).

No first-party analyzer documented, and the CLI has no analyze command. Void is a Vite plugin, so the third-party route is a community visualizer such as [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer). ([cli](https://void.cloud/reference/cli))

Example of building it yourself:

Void has no analyze command. Add `rollup-plugin-visualizer` to `vite.config.ts` for the client build.

```ts
// vite.config.ts
import { voidSvelte } from '@void/svelte/plugin'
import { visualizer } from 'rollup-plugin-visualizer'
import { defineConfig } from 'vite'
import { voidPlugin } from 'void'

export default defineConfig({
  plugins: [
    voidPlugin(),
    voidSvelte(),
    process.env.ANALYZE && { ...visualizer({ filename: 'dist/stats.html' }), applyToEnvironment: (env) => env.name === 'client' },
  ],
})
```

Source: [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer) · [Void: CLI](https://void.cloud/reference/cli)

### Void (Solid)

Label: **Third-party** (1 of 2 points).

No first-party analyzer documented, and the CLI has no analyze command. Void is a Vite plugin, so the third-party route is a community visualizer such as [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer). ([cli](https://void.cloud/reference/cli))

Example of building it yourself:

Void has no analyze command. Add `rollup-plugin-visualizer` to `vite.config.ts` for the client build.

```ts
// vite.config.ts
import { voidSolid } from '@void/solid/plugin'
import { visualizer } from 'rollup-plugin-visualizer'
import { defineConfig } from 'vite'
import { voidPlugin } from 'void'

export default defineConfig({
  plugins: [
    voidPlugin(),
    voidSolid(),
    process.env.ANALYZE && { ...visualizer({ filename: 'dist/stats.html' }), applyToEnvironment: (env) => env.name === 'client' },
  ],
})
```

Source: [rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer) · [Void: CLI](https://void.cloud/reference/cli)

---

HTML version: https://framework-compare.vercel.app/features/bundle-analysis · All pages: https://framework-compare.vercel.app/llms.txt · Data: https://framework-compare.vercel.app/api/index.json
