Skip to content

Conversation

@LingyuCoder
Copy link
Contributor

@LingyuCoder LingyuCoder commented Oct 30, 2025

Summary

port webpack/webpack#19768 from webpack

Related links

Checklist

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

Copilot AI review requested due to automatic review settings October 30, 2025 12:24
@github-actions github-actions bot added team The issue/pr is created by the member of Rspack. release: bug fix release: bug related release(mr only) labels Oct 30, 2025
@netlify
Copy link

netlify bot commented Oct 30, 2025

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit 87da049
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/69035915dcd8a6000878f12b
😎 Deploy Preview https://deploy-preview-12045--rspack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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 an issue where __webpack_require__.C (EXTERNAL_INSTALL_CHUNK) was not functioning correctly in module chunk format with dependOn entries. The fix changes the export strategy for __webpack_require__ from a default export to a named export.

  • Changed __webpack_require__ export from default to named export using a temporary variable
  • Updated import statements to use named imports instead of default imports
  • Removed conditional logic that prevented runtime module addition for entry chunks

Reviewed Changes

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

File Description
tests/rspack-test/configCases/module/dependOn-entries/test.filter.js Re-enabled previously disabled test that was failing with __webpack_require__.C error
crates/rspack_plugin_runtime/src/runtime_module/export_webpack_require.rs Changed export from default to named export with temporary variable
crates/rspack_plugin_runtime/src/module_chunk_loading.rs Removed entry module count check that prevented runtime module addition
crates/rspack_plugin_runtime/src/module_chunk_format.rs Updated import to use named import syntax and added formatting whitespace

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

@github-actions
Copy link
Contributor

📦 Binary Size-limit

Comparing 87da049 to chore: release 1.6.0 (#12042) by Fy

🙈 Size remains the same at 47.84MB

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 30, 2025

CodSpeed Performance Report

Merging #12045 will not alter performance

Comparing fix/dependon-entries-module (87da049) with main (2a67107)1

Summary

✅ 17 untouched

Footnotes

  1. No successful run was found on main (17e360a) during the generation of this report, so 2a67107 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@LingyuCoder LingyuCoder enabled auto-merge (squash) October 30, 2025 14:08
@LingyuCoder LingyuCoder merged commit ceb1af2 into main Oct 30, 2025
55 checks passed
@LingyuCoder LingyuCoder deleted the fix/dependon-entries-module branch October 30, 2025 14:10
@h-a-n-a h-a-n-a mentioned this pull request Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants