Skip to content

refactor: move build_chunk_graph into compilation#12162

Merged
hardfist merged 2 commits intomainfrom
yj/add-build-chunk-graph
Nov 12, 2025
Merged

refactor: move build_chunk_graph into compilation#12162
hardfist merged 2 commits intomainfrom
yj/add-build-chunk-graph

Conversation

@hardfist
Copy link
Copy Markdown
Contributor

Summary

move build_chunk_graph into compilation folder

Follow up:

  • change &mut Compilation to &Compilation

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 canceled.

Name Link
🔨 Latest commit 7ebd89b
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/691420e891f5a000081b380a

@github-actions github-actions bot added release: refactor team The issue/pr is created by the member of Rspack. labels Nov 12, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Nov 12, 2025

📦 Binary Size-limit

Comparing 7ebd89b to feat(react-refresh-loader): generate more compact runtime code (#12160) by neverland

❌ Size increased by 128bytes from 48.09MB to 48.09MB (⬆️0.00%)

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Nov 12, 2025

CodSpeed Performance Report

Merging #12162 will not alter performance

Comparing yj/add-build-chunk-graph (7ebd89b) with main (49f97a7)

Summary

✅ 17 untouched

@hardfist hardfist marked this pull request as ready for review November 12, 2025 06:46
Copilot AI review requested due to automatic review settings November 12, 2025 06:46
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 codebase by moving the build_chunk_graph module from the top-level rspack_core into the compilation folder. The main changes include:

  • Moving build_chunk_graph module into compilation/build_chunk_graph
  • Creating a new artifact.rs file containing code splitting cache functionality previously in old_cache/local/code_splitting_cache.rs
  • Adding new code splitter implementations in new_code_splitter.rs, code_splitter.rs, incremental.rs, and available_modules.rs
  • Removing the old cache module references

Reviewed Changes

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

Show a summary per file
File Description
crates/rspack_core/src/lib.rs Removed public export of build_chunk_graph module
crates/rspack_core/src/compilation/mod.rs Added build_chunk_graph as a submodule and imported its public items
crates/rspack_core/src/old_cache/mod.rs Removed local module and its export
crates/rspack_core/src/old_cache/local/mod.rs Deleted file containing code_splitting_cache export
crates/rspack_core/src/compilation/build_chunk_graph/*.rs New files containing moved/refactored code splitting logic

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

@hardfist hardfist merged commit 0c06124 into main Nov 12, 2025
74 of 76 checks passed
@hardfist hardfist deleted the yj/add-build-chunk-graph branch November 12, 2025 06:48
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