Skip to content

fix(file-size): improve size diff detection#6711

Merged
chenjiahan merged 3 commits intomainfrom
min_size_diff_1205
Dec 6, 2025
Merged

fix(file-size): improve size diff detection#6711
chenjiahan merged 3 commits intomainfrom
min_size_diff_1205

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

  • Add isSignificantDiff helper to check for significant size differences
  • Update diff checks to use isSignificantDiff instead of direct comparison

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings December 5, 2025 02:19
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 5, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 53d0c8c
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/69337096ba349300081592c2
😎 Deploy Preview https://deploy-preview-6711--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 61 (🔴 down 9 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a helper function to filter out insignificant file size differences in build output reporting, replacing direct zero-comparison checks with a threshold-based approach.

  • Adds isSignificantDiff helper function with 0.01 threshold
  • Updates three comparison points (file size diff, gzip diff, and total size diff) to use the new helper
  • Aims to reduce noise from negligible size changes in build output

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/core/src/plugins/fileSize.ts Outdated
Comment thread packages/core/src/plugins/fileSize.ts Outdated
Comment thread packages/core/src/plugins/fileSize.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@chenjiahan chenjiahan merged commit 5405b70 into main Dec 6, 2025
11 checks passed
@chenjiahan chenjiahan deleted the min_size_diff_1205 branch December 6, 2025 12:40
@chenjiahan chenjiahan mentioned this pull request Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants