8000 fix: should disconnect children correctly when remove available modules by JSerFeng · Pull Request #10503 · web-infra-dev/rspack · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@JSerFeng
Copy link
Contributor
@JSerFeng JSerFeng commented May 28, 2025

Summary

fix #10320

When a chunk has some modules removed, should disconnect its AsyncDependencies as well.

For example giving the following chunk graph, you can see the test case for detail

image

The routes.js exists in both main and routes chunk, the chunk graph looks just like above

When removing available modules, the routes.js should be removed from routes chunk, and then routes chunk should not contain routes.js, the routes chunk should not have a child of chunk foo

Before

image

After

image

Checklist

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

@netlify
Copy link
netlify bot 8000 commented May 28, 2025

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit e38959c
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/683742383e6a9e00089794a4
😎 Deploy Preview https://deploy-preview-10503--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.

@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 May 28, 2025
@codspeed-hq
Copy link
codspeed-hq bot commented May 28, 2025

CodSpeed Performance Report

Merging #10503 will not alter performance

Comparing fix/disconnect-chunk-children (e38959c) with main (a310bc8)

Summary

✅ 11 untouched benchmarks

@JSerFeng JSerFeng enabled auto-merge (squash) May 28, 2025 17:20
@JSerFeng JSerFeng merged commit d42e8d1 into main May 29, 2025
45 checks passed
@JSerFeng JSerFeng deleted the fix/disconnect-chunk-children branch May 29, 2025 02:18
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.

[Bug]: Memory leak for the Dev Server when parallelCodeSplitting: true

3 participants

0