Skip to content

Conversation

@stormslowly
Copy link
Contributor

@stormslowly stormslowly commented Oct 21, 2025

Summary

Align with webpack/webpack#19619, adding dependent chunks loading in the entry's startup.

The former test case configCases/module/split-chunks-without-externals/index.js is a false passing.
So an E2E case is added to ensure the functionality.

Related links

Checklist

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

Copilot AI review requested due to automatic review settings October 21, 2025 09:17
@netlify
Copy link

netlify bot commented Oct 21, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 30ec8fa
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/68f9a06a0e5b2100095604b2

@stormslowly stormslowly requested a review from JSerFeng October 21, 2025 09:17
@github-actions github-actions bot added release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack. labels Oct 21, 2025
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 ESM output chunk module dependency loading by ensuring that dependent chunks are properly loaded during entry startup. This aligns the behavior with webpack's implementation (PR #19619) and addresses a false-passing test case.

Key Changes

  • Added startup rendering hook to handle dependent chunk loading
  • Implemented import statement generation for dependent chunks in ESM format
  • Added logic to install dependent chunks using runtime globals during startup

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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 21, 2025

📦 Binary Size-limit

Comparing 30ec8fa to fix: improve type safety for MultiStats options (#11964) by neverland

❌ Size increased by 5.88KB from 47.82MB to 47.83MB (⬆️0.01%)

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 21, 2025

CodSpeed Performance Report

Merging #11945 will not alter performance

Comparing fix/esm_chunking (30ec8fa) with main (d1a5d5a)

Summary

✅ 17 untouched

@stormslowly stormslowly enabled auto-merge (squash) October 22, 2025 12:07
@stormslowly stormslowly merged commit 15771e7 into main Oct 23, 2025
44 checks passed
@stormslowly stormslowly deleted the fix/esm_chunking branch October 23, 2025 06:10
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