Skip to content

fix: update lazyCompilation config to fix deprecation warning#5829

Merged
chenjiahan merged 5 commits intomainfrom
move_lazy_compilation_0813
Aug 13, 2025
Merged

fix: update lazyCompilation config to fix deprecation warning#5829
chenjiahan merged 5 commits intomainfrom
move_lazy_compilation_0813

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Screenshot 2025-08-13 at 13 55 26

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings August 13, 2025 06:00
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 fixes a deprecation warning by updating the lazy compilation configuration to be set at the root level instead of under the experiments object, aligning with rspack-chain v1.4.0 changes.

  • Update rspack-chain dependency from v1.3.2 to v1.4.0
  • Move lazyCompilation configuration from experiments object to root level
  • Update corresponding test snapshots to reflect the configuration structure change

Reviewed Changes

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

File Description
packages/core/package.json Updates rspack-chain dependency to v1.4.0
packages/core/src/plugins/lazyCompilation.ts Refactors lazy compilation configuration to use root-level API instead of experiments
packages/core/tests/snapshots/*.snap Updates test snapshots to reflect new configuration structure
packages/compat/webpack/tests/snapshots/default.test.ts.snap Updates webpack compatibility test snapshots
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

@chenjiahan chenjiahan changed the title fix: move lazyCompilation config to root level to fix deprecation warning fix: update lazyCompilation config to fix deprecation warning Aug 13, 2025
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 13, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 34d7746
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/689c3c4c2e8c820008a4c4dd
😎 Deploy Preview https://deploy-preview-5829--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: 76 (🟢 up 9 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.

@chenjiahan chenjiahan merged commit 479c1e3 into main Aug 13, 2025
11 checks passed
@chenjiahan chenjiahan deleted the move_lazy_compilation_0813 branch August 13, 2025 07:28
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.

3 participants