Skip to content

perf: minify the prebundled webpack-bundle-analyzer#5502

Merged
chenjiahan merged 2 commits intomainfrom
minify_bundle_analyzer_0629
Jun 29, 2025
Merged

perf: minify the prebundled webpack-bundle-analyzer#5502
chenjiahan merged 2 commits intomainfrom
minify_bundle_analyzer_0629

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

This PR minifies the pre-bundled webpack-bundle-analyzer to reduce install size (474KB -> 231KB).

We do not enable minification for most pre-bundle packages, which is for debugging convenience. However, given that the size of webpack-bundle-analyzer is quite large and it is not part of the core feature, we can compress it to reduce its size.

Checklist

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

Copilot AI review requested due to automatic review settings June 29, 2025 00:36
@netlify
Copy link
Copy Markdown

netlify bot commented Jun 29, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit a73a622
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68608c09ee44ca0008161266
😎 Deploy Preview https://deploy-preview-5502--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: 85 (🟢 up 20 from production)
Accessibility: 97 (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 reduces the install size by minifying the prebundled webpack-bundle-analyzer.

  • Enabled minification for webpack-bundle-analyzer in the prebundle configuration
  • Bumped the prebundle dependency version in package.json

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
packages/core/prebundle.config.mjs Added minification option for webpack-bundle-analyzer
packages/core/package.json Updated prebundle version from 1.3.3 to 1.3.4
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@chenjiahan chenjiahan merged commit 85666fc into main Jun 29, 2025
11 checks passed
@chenjiahan chenjiahan deleted the minify_bundle_analyzer_0629 branch June 29, 2025 00:48
@chenjiahan chenjiahan mentioned this pull request Jun 29, 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