Skip to content

fix: add warning for modifying plugins in modifyRsbuildConfig#5293

Merged
chenjiahan merged 1 commit intomainfrom
plugins_warning_0521
May 22, 2025
Merged

fix: add warning for modifying plugins in modifyRsbuildConfig#5293
chenjiahan merged 1 commit intomainfrom
plugins_warning_0521

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Added a check to compare the plugin count before and after the modifyRsbuildConfig hook execution. If the plugin count changes, a warning is logged to inform users that modifying plugins at this stage is not allowed.

Screenshot 2025-05-21 at 22 34 05

Checklist

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

Copilot AI review requested due to automatic review settings May 21, 2025 14:36
@netlify
Copy link
Copy Markdown

netlify bot commented May 21, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 29f8048
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/682de4f33ac22d0008abce64
😎 Deploy Preview https://deploy-preview-5293--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: 78 (🟢 up 33 from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (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 adds a warning to notify users when the plugin count changes during the execution of modifyRsbuildConfig.

  • Introduces a check to record the initial plugin count before hook execution.
  • Logs a warning if the plugin count changes after the hook modifies the configuration.

@chenjiahan chenjiahan merged commit af61536 into main May 22, 2025
12 checks passed
@chenjiahan chenjiahan deleted the plugins_warning_0521 branch May 22, 2025 00:32
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