Skip to content

chore: use Rolldown bundle analyzer instead of rollup-plugin-visualizer - #343

Open
stipsan wants to merge 1 commit into
mainfrom
cursor/rolldown-bundle-analyzer-6e6c
Open

chore: use Rolldown bundle analyzer instead of rollup-plugin-visualizer#343
stipsan wants to merge 1 commit into
mainfrom
cursor/rolldown-bundle-analyzer-6e6c

Conversation

@stipsan

@stipsan stipsan commented Aug 18, 2026

Copy link
Copy Markdown
Member

Replace rollup-plugin-visualizer in the demo Vite config with Rolldown’s built-in bundleAnalyzerPlugin.

Vite 8 already bundles with Rolldown, so analysis now comes from rolldown/experimental instead of a Rollup visualizer plugin. After pnpm build:demo, the report is emitted as demo/dist/analyze-data.json (JSON by default) instead of stats.html.

rolldown is added as a direct devDependency at ~1.1.5 so it matches the version Vite 8.1.5 uses. That keeps instanceof BuiltinPlugin working under pnpm’s strict resolution.

Verified locally:

  • pnpm build:demo emits demo/dist/analyze-data.json
  • pnpm lint, pnpm type-check, and pnpm test pass
Open in Web Open in Cursor 

Swap the demo Vite build to rolldown/experimental bundleAnalyzerPlugin so analysis is produced by the bundler itself.

Co-authored-by: Cody Olsen <stipsan@users.noreply.github.com>
@changeset-bot

changeset-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0d28358

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@stipsan
stipsan marked this pull request as ready for review August 18, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants