Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Fix the initial chunks HMR test case.

dev.lazyCompilation does not work when there is only one entry, use tools.rspack.lazyCompilation instead.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings December 30, 2025 03:07
@netlify
Copy link

netlify bot commented Dec 30, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 6d05cfd
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/6953aecb1c623400095e1a8e
😎 Deploy Preview https://deploy-preview-6864--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: 61 (🟢 up 6 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.

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 fixes the initial chunks HMR test case by switching from dev.lazyCompilation to tools.rspack.lazyCompilation, which resolves an issue where lazy compilation doesn't work with single entry configurations.

  • Migrated lazy compilation configuration from dev.lazyCompilation to tools.rspack.lazyCompilation
  • Removed unnecessary core-js dependencies and polyfill configuration to simplify the test
  • Updated the configuration structure from function-based to object-based for tools.rspack

Reviewed changes

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

File Description
e2e/cases/lazy-compilation/add-initial-chunk/rsbuild.config.ts Migrated lazy compilation config to tools.rspack.lazyCompilation, removed polyfill configuration, simplified cache group test regex
e2e/cases/lazy-compilation/add-initial-chunk/src/index.js Removed core-js import no longer needed after removing polyfill configuration
e2e/cases/lazy-compilation/add-initial-chunk/src/initial.js Removed core-js/package.json import no longer needed for test

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

@chenjiahan chenjiahan merged commit 66c7a9a into main Dec 30, 2025
11 checks passed
@chenjiahan chenjiahan deleted the initial_test_case_1230 branch December 30, 2025 11:03
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