Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 25, 2025

The bundle size chart now displays the differences between consecutive versions instead of absolute values, making it much easier to see actual changes between Rolldown versions.

Problem

The original bundle size chart showed absolute values (e.g., 571,470 bytes vs 571,458 bytes) which made it extremely difficult to see the actual changes between versions. Users had to manually calculate differences to understand performance improvements or regressions.

Solution

Transformed the bundle size data to show differences between consecutive versions with enhanced visual indicators:

  • Gray bars for the baseline version (first version, 0 change)
  • Green bars for bundle size decreases (negative values)
  • Red bars for bundle size increases (positive values)
  • Enhanced tooltips showing both the change amount and actual size transition (e.g., "-12 bytes (571,470 → 571,458)")

Example

With the test data, the chart now clearly shows:

  • v7.1.0: Baseline (0 change)
  • v7.1.1: -12 bytes decrease
  • v7.1.2: 0 bytes change
  • v7.1.3: -834 bytes decrease
  • v7.1.4: 0 bytes change

This makes it immediately obvious that v7.1.3 had the most significant bundle size improvement, which was invisible in the original absolute value chart.

Fixes #36.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@Boshen Boshen marked this pull request as ready for review August 25, 2025 08:32
Copilot AI changed the title [WIP] Better bundle size diff Improve bundle size chart to show differences between versions Aug 25, 2025
Copilot AI requested a review from Boshen August 25, 2025 08:37
@Boshen Boshen merged commit fbbb830 into main Aug 25, 2025
2 checks passed
@Boshen Boshen deleted the copilot/fix-36 branch August 25, 2025 08:41
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.

Better bundle size diff

2 participants