Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Mark the bundleAnalyze configuration as deprecated in both code and documentation.

Update documentation to recommend using Rsdoctor for bundle analysis instead.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings October 23, 2025 07:33
@netlify
Copy link

netlify bot commented Oct 23, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 31a6d14
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68f9da365e169f00080d8684
😎 Deploy Preview https://deploy-preview-6415--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: 66 (🟢 up 6 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
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 deprecates the bundleAnalyze configuration option in favor of using Rsdoctor for bundle analysis. The deprecation notice indicates the feature will be removed in Rsbuild 2.0.

  • Added deprecation warnings to the bundleAnalyze configuration documentation and code
  • Updated optimization guides to recommend Rsdoctor instead of bundleAnalyze
  • Removed references to the BUNDLE_ANALYZE environment variable from documentation

Reviewed Changes

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

Show a summary per file
File Description
website/docs/zh/guide/optimization/optimize-bundle.mdx Replaced bundleAnalyze instructions with Rsdoctor recommendation in Chinese docs
website/docs/zh/config/performance/bundle-analyze.mdx Added deprecation notice and default value to Chinese config documentation
website/docs/en/guide/optimization/optimize-bundle.mdx Replaced bundleAnalyze instructions with Rsdoctor recommendation in English docs
website/docs/en/config/performance/bundle-analyze.mdx Added deprecation notice and default value to English config documentation
packages/core/src/types/config.ts Added @deprecated JSDoc tag and default value to TypeScript configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@chenjiahan
Copy link
Member Author

We need to improve Rsdoctor's tree map component before merging this

@chenjiahan chenjiahan marked this pull request as draft October 23, 2025 10:38
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