Skip to content

refactor: move code splitting cache into artifact#12164

Merged
hardfist merged 1 commit intomainfrom
yj/move-codes-splitting-cache
Nov 13, 2025
Merged

refactor: move code splitting cache into artifact#12164
hardfist merged 1 commit intomainfrom
yj/move-codes-splitting-cache

Conversation

@hardfist
Copy link
Copy Markdown
Contributor

Summary

move code splitting cache into build_chunk_graph_artifact

Related links

Checklist

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

@netlify
Copy link
Copy Markdown

netlify bot commented Nov 12, 2025

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit d9efd23
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/69144ed42781c300083aa3e2
😎 Deploy Preview https://deploy-preview-12164--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 team The issue/pr is created by the member of Rspack. release: refactor labels Nov 12, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 12, 2025

📦 Binary Size-limit

Comparing d9efd23 to chore: depreacte experiments.parallelCodeSplitting (#12169) by Fy

🙈 Size remains the same at 48.09MB

@hardfist hardfist marked this pull request as ready for review November 12, 2025 07:36
Copilot AI review requested due to automatic review settings November 12, 2025 07:36
Copy link
Copy Markdown
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 refactors the code splitting cache by moving it into a new BuildChunkGraphArtifact structure. This change improves code organization by grouping related build chunk graph artifacts together.

  • Introduced BuildChunkGraphArtifact struct that wraps CodeSplittingCache
  • Updated all references from compilation.code_splitting_cache to compilation.build_chunk_graph_artifact.code_splitting_cache
  • Maintained backwards compatibility by keeping the same functionality

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
crates/rspack_core/src/compiler/rebuild.rs Updated rebuild logic to swap the entire build_chunk_graph_artifact instead of just code_splitting_cache
crates/rspack_core/src/compilation/mod.rs Added BuildChunkGraphArtifact import and field, removed direct CodeSplittingCache import and field
crates/rspack_core/src/compilation/build_chunk_graph/new_code_splitter.rs Updated all references to access cache through new artifact structure
crates/rspack_core/src/compilation/build_chunk_graph/mod.rs Updated code splitter access paths through new artifact structure
crates/rspack_core/src/compilation/build_chunk_graph/artifact.rs Defined new BuildChunkGraphArtifact struct and updated all internal references to use the new path

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

@stormslowly stormslowly self-requested a review as a code owner November 12, 2025 08:21
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Nov 12, 2025

CodSpeed Performance Report

Merging #12164 will not alter performance

Comparing yj/move-codes-splitting-cache (d9efd23) with main (e23f4cf)

Summary

✅ 17 untouched

@stormslowly stormslowly force-pushed the yj/move-codes-splitting-cache branch from 06a1bd5 to d9efd23 Compare November 12, 2025 09:09
@hardfist hardfist enabled auto-merge (squash) November 13, 2025 07:29
@hardfist hardfist merged commit 5b47c08 into main Nov 13, 2025
112 of 118 checks passed
@hardfist hardfist deleted the yj/move-codes-splitting-cache branch November 13, 2025 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: refactor 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