Skip to content

chore: update lazy compilation middleware path#6797

Merged
chenjiahan merged 3 commits intomainfrom
lazy_compilation_middleware_1217
Dec 17, 2025
Merged

chore: update lazy compilation middleware path#6797
chenjiahan merged 3 commits intomainfrom
lazy_compilation_middleware_1217

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Update the usage of the lazy compilation middleware, switch from using rspack.experiments.lazyCompilationMiddleware to rspack.lazyCompilationMiddleware.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings December 17, 2025 09:24
@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 17, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 5a29e67
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/694277ecfef3c300088ae138
😎 Deploy Preview https://deploy-preview-6797--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: 59 (🔴 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.

@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.

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 updates the lazy compilation middleware usage to align with Rspack's API changes, moving from the deprecated rspack.experiments.lazyCompilationMiddleware to the top-level rspack.lazyCompilationMiddleware.

Key Changes:

  • Updated middleware invocation from rspack.experiments.lazyCompilationMiddleware to rspack.lazyCompilationMiddleware
  • Simplified the lazy compilation detection logic to only check the top-level lazyCompilation option, removing checks for the deprecated experiments.lazyCompilation path
  • Updated comments to reflect that only two ways remain to enable lazy compilation (removing the deprecated experiments path)

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

@chenjiahan chenjiahan merged commit ba96a6b into main Dec 17, 2025
11 checks passed
@chenjiahan chenjiahan deleted the lazy_compilation_middleware_1217 branch December 17, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants