Skip to content

refactor: move compilation.rs to compilation folder#12159

Merged
hardfist merged 2 commits intomainfrom
yj/move-compilation
Nov 12, 2025
Merged

refactor: move compilation.rs to compilation folder#12159
hardfist merged 2 commits intomainfrom
yj/move-compilation

Conversation

@hardfist
Copy link
Copy Markdown
Contributor

@hardfist hardfist commented Nov 12, 2025

Summary

compilation should lie in compilation folder which support better access control

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 ee7ae2a
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/6913f8cd1982c80008826947

@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 ee7ae2a to chore(deps): update patch npm dependencies (#12153) by renovate[bot]

🙈 Size remains the same at 48.09MB

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Nov 12, 2025

CodSpeed Performance Report

Merging #12159 will not alter performance

Comparing yj/move-compilation (ee7ae2a) with main (1f2a3a3)

Summary

✅ 17 untouched

@hardfist hardfist marked this pull request as ready for review November 12, 2025 03:57
Copilot AI review requested due to automatic review settings November 12, 2025 03:57
@hardfist hardfist enabled auto-merge (squash) November 12, 2025 03:58
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 structure by moving compilation.rs from crates/rspack_core/src/compiler/compilation.rs to crates/rspack_core/src/compilation/mod.rs. This reorganization improves module organization and access control by giving compilation its own dedicated folder alongside the existing make submodule.

Key changes:

  • Moved compilation implementation from compiler subfolder to its own top-level module
  • Updated import paths across affected files to reference the new location
  • Added CompilationAsset to public exports for better API access

Reviewed Changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
crates/rspack_core/src/compiler/compilation.rs Deleted - entire file content moved to compilation/mod.rs
crates/rspack_core/src/compilation/mod.rs Added all compilation implementation code from the deleted file
crates/rspack_core/src/compiler/mod.rs Updated imports to reference new compilation module location and added explicit Compilation/CompilationAsset imports
crates/rspack_core/src/lib.rs Updated public exports to include all compilation items via wildcard export
crates/rspack_core/src/plugin/mod.rs Updated CompilationId import path from crate::compiler to crate root

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

@hardfist hardfist merged commit 0496b0a into main Nov 12, 2025
76 of 78 checks passed
@hardfist hardfist deleted the yj/move-compilation branch November 12, 2025 04:01
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