Skip to content

fix: should respect max size correctly#8442

Merged
JSerFeng merged 1 commit intomainfrom
fix/split-chunks-consistency
Nov 18, 2024
Merged

fix: should respect max size correctly#8442
JSerFeng merged 1 commit intomainfrom
fix/split-chunks-consistency

Conversation

@JSerFeng
Copy link
Copy Markdown
Contributor

@JSerFeng JSerFeng commented Nov 14, 2024

Summary

close #8310

There is a bug in splitChunks ensureMaxSizeFit, ignored some corner situation while detecting which modules should be placed to which chunk, causing some modules are not split.

Test cases are from https://github.com/bigbossx/split-chunk-bug, by @bigbossx

Checklist

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

@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 Nov 14, 2024
@netlify
Copy link
Copy Markdown

netlify bot commented Nov 14, 2024

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit 925d1a3
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/6736163ab9cf8d000824d29e
😎 Deploy Preview https://deploy-preview-8442--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 site configuration.

@JSerFeng JSerFeng merged commit 159c9b2 into main Nov 18, 2024
@JSerFeng JSerFeng deleted the fix/split-chunks-consistency branch November 18, 2024 07:54
@h-a-n-a h-a-n-a mentioned this pull request Nov 19, 2024
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]: split chunk not respect minSize and maxSize

2 participants