Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

LingyuCoder
Copy link
Contributor

Summary

  • rewrite hot test cases with NEXT_HMR to make hot cases much more simple

Related links

Checklist

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

@Copilot Copilot AI review requested due to automatic review settings October 15, 2025 10:00
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Oct 15, 2025
Copy link

netlify bot commented Oct 15, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit ae06846
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/68f0dda829bde200083d548a

Copy link
Contributor

@Copilot 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 rewrites the hot test cases to use the new NEXT_HMR API instead of the legacy callback-based NEXT function for hot module replacement updates, significantly simplifying the test code structure. The changes also include removal of legacy helper files and update the HMR test infrastructure.

  • Refactored test cases from Promise-based callback pattern to async/await using NEXT_HMR()
  • Removed legacy update helper files (update.js, update.esm.js)
  • Updated test infrastructure to handle the new HMR API pattern

Reviewed Changes

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

Show a summary per file
File Description
Various index.js test files Converted from callback-based HMR tests to async/await pattern with NEXT_HMR
update.js and update.esm.js Removed legacy update helper modules
Snapshot files Updated to reflect new test execution patterns
loader.ts and plugin.ts Updated HMR test infrastructure to support new API
Various test configuration files Added module.hot.accept calls where missing

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

Copy link
Contributor

github-actions bot commented Oct 15, 2025

📦 Binary Size-limit

Comparing ae06846 to perf(cli): switch to cac and refactor code (#11893) by neverland

🙈 Size remains the same at 47.67MB

Copy link

codspeed-hq bot commented Oct 15, 2025

CodSpeed Performance Report

Merging #11882 will not alter performance

Comparing test/refactor-next (ae06846) with main (0e14994)

Summary

✅ 17 untouched

@LingyuCoder LingyuCoder requested a review from 9aoy October 16, 2025 12:32
@LingyuCoder LingyuCoder enabled auto-merge (squash) October 16, 2025 12:32
@LingyuCoder LingyuCoder merged commit 26eae5c into main Oct 16, 2025
44 checks passed
@LingyuCoder LingyuCoder deleted the test/refactor-next branch October 16, 2025 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.