Skip to content

fix: should skip rebuilding chunk graph if only specifier order change#10104

Merged
JSerFeng merged 1 commit intomainfrom
fix/chunk-graph-cache
Apr 22, 2025
Merged

fix: should skip rebuilding chunk graph if only specifier order change#10104
JSerFeng merged 1 commit intomainfrom
fix/chunk-graph-cache

Conversation

@JSerFeng
Copy link
Copy Markdown
Contributor

@JSerFeng JSerFeng commented Apr 21, 2025

Summary

When there is only orders of specifiers change, chunk graph should not be re-created.

import v1 from 'lib1' // active: false
import v2 from 'lib2' // active: false

v2; // active: true
v1; // active: true

The actual order of the outgoings should be lib1 then lib2, which means we should use the first outgoing as its order.

We should make sure lib1 is always present before lib2. So we should take all connections into account even if it's activeState is not true.

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 Apr 21, 2025
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 21, 2025

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit 217d8c5
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/680731e35c2ccd0008a82801
😎 Deploy Preview https://deploy-preview-10104--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.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 21, 2025

CodSpeed Performance Report

Merging #10104 will not alter performance

Comparing fix/chunk-graph-cache (217d8c5) with main (598c4a4)

🎉 Hooray! codspeed-rust just leveled up to 2.7.2!

A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳!
Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.

Summary

✅ 11 untouched benchmarks

@JSerFeng JSerFeng force-pushed the fix/chunk-graph-cache branch from 98a755e to 217d8c5 Compare April 22, 2025 06:06
@JSerFeng JSerFeng merged commit 3272992 into main Apr 22, 2025
29 checks passed
@JSerFeng JSerFeng deleted the fix/chunk-graph-cache branch April 22, 2025 06:38
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.

2 participants