Skip to content

refactor(code-splitting): remove redundant synthetic statement owner - #10503

Merged
graphite-app[bot] merged 1 commit into
mainfrom
refactor/remove-order-synthetic-stmt-owner
Aug 17, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
refactor/remove-order-synthetic-stmt-owner

Conversation

@hyfdev

@hyfdev hyfdev commented Jul 28, 2026

Copy link
Copy Markdown
Member

Summary

  • remove the duplicate OrderSyntheticStmt.owner field because each declared symbol already carries its module owner
  • keep the order-wrapper ownership assertion at the registration boundary while leaving chunk as the physical placement fact
  • update the code-splitting design to document symbol ownership and synthetic declaration placement separately

Validation

  • cargo check -p rolldown --lib
  • cargo clippy -p rolldown --lib --features experimental -- --deny warnings
  • cargo test -p rolldown --test integration strict_execution_order_invariants (12 passed)
  • cargo test -p rolldown --test integration strict_execution_order_invariants -- --ignored (5 passed)
  • cargo test -p rolldown --test integration cjs_dynamic_entry_transitive_external_star -- --ignored
  • cargo fmt --all -- --check
  • just lint-repo

@netlify

netlify Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit b26b65d
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6a82b5e306de670008121cc6

@hyfdev
hyfdev marked this pull request as ready for review July 28, 2026 07:52
Copilot AI review requested due to automatic review settings July 28, 2026 07:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

hyfdev commented Jul 28, 2026 •

Copy link
Copy Markdown
Member Author

Merge activity

  • Jul 28, 7:53 AM UTC: The merge label 'graphite: merge-when-ready' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jul 29, 6:42 AM UTC: This pull request can not be added to the Graphite merge queue. Please try rebasing and resubmitting to merge when ready.
  • Jul 29, 6:42 AM UTC: Graphite disabled "merge when ready" on this PR due to: a merge conflict with the target branch; resolve the conflict and try again..
  • Jul 29, 6:42 AM UTC: The merge label 'graphite: merge-when-ready' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 17, 7:18 AM UTC: hyfdev added this pull request to the Graphite merge queue.
  • Aug 17, 7:25 AM UTC: Merged by the Graphite merge queue.

@codspeed

codspeed Bot commented Jul 28, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 7 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing refactor/remove-order-synthetic-stmt-owner (59d79a2) with main (556f2c2)

Open in CodSpeed

Footnotes

  1. 10 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@hyfdev
hyfdev force-pushed the refactor/remove-order-synthetic-stmt-owner branch from 9de9277 to a10e74f Compare August 17, 2026 07:12
…10503)

## Summary

- remove the duplicate `OrderSyntheticStmt.owner` field because each declared symbol already carries its module owner
- keep the order-wrapper ownership assertion at the registration boundary while leaving `chunk` as the physical placement fact
- update the code-splitting design to document symbol ownership and synthetic declaration placement separately

## Validation

- `cargo check -p rolldown --lib`
- `cargo clippy -p rolldown --lib --features experimental -- --deny warnings`
- `cargo test -p rolldown --test integration strict_execution_order_invariants` (12 passed)
- `cargo test -p rolldown --test integration strict_execution_order_invariants -- --ignored` (5 passed)
- `cargo test -p rolldown --test integration cjs_dynamic_entry_transitive_external_star -- --ignored`
- `cargo fmt --all -- --check`
- `just lint-repo`
@graphite-app
graphite-app Bot force-pushed the refactor/remove-order-synthetic-stmt-owner branch from a10e74f to b26b65d Compare August 17, 2026 07:18
@graphite-app
graphite-app Bot merged commit b26b65d into main Aug 17, 2026
35 of 36 checks passed
@graphite-app
graphite-app Bot deleted the refactor/remove-order-synthetic-stmt-owner branch August 17, 2026 07:25
@rolldown-guard rolldown-guard Bot mentioned this pull request Aug 19, 2026
shulaoda added a commit that referenced this pull request Aug 19, 2026
## [1.2.5] - 2026-08-19

### 🚀 Features

- bench: record per-suite peak memory in the node benchmark (#10704) by @IWANABETHATGUY
- binding: allocation-tracking global allocator behind the `tracking_allocator` feature (#10703) by @IWANABETHATGUY
- add armv7 android (armv7-linux-androideabi) support (#10691) by @shulaoda
- add `NAMESPACE_CONFLICT` warning for conflicting star re-exports (#7452) by @AliceLanniste

### 🐛 Bug Fixes

- rolldown_plugin_vite_reporter: avoid ANSI erase-line escape in non-TTY output (#10692) by @shulaoda
- rolldown_plugin_vite_resolve: preserve Yarn PnP virtual importer (#10591) by @Freakazo
- exclude hash placeholders from case-insensitive filename deconfliction (#10590) by @Nic-Polumeyv
- code-splitting: fold already-loaded side-effectful libraries into eager entries (#10645) by @JoviDeCroock
- dev: flush re-emitted assets when their content changes (#10637) by @btea
- renamer: rename nested `require`/`__filename`/`__dirname` bindings in CJS output (#10655) by @marcoroth
- silence two wasm-only warnings (#10668) by @IWANABETHATGUY

### 🚜 Refactor

- skip case folding for filenames with hash placeholders (#10689) by @hyfdev
- code-splitting: remove redundant synthetic statement owner (#10503) by @hyfdev
- renamer: move the cjs check into `rename_bindings_shadowing_cjs_ambient_names` (#10672) by @IWANABETHATGUY

### 📚 Documentation

- agents: point the never-edit list at the binding files that exist (#10719) by @melbinjp

### 🧪 Testing

- deconflict: pin renaming the external process binding away from the global (#10702) by @hyfdev
- dev: expect a hot update across a circular import (#10700) by @hyfdev

### ⚙️ Miscellaneous Tasks

- deps: upgrade oxc to 0.146.0 (#10707) by @Boshen
- deps: update rust crates (#10684) by @renovate[bot]
- deps: update npm packages (#10685) by @renovate[bot]
- build the benchmark comparison window from the JSON lines (#10701) by @IWANABETHATGUY
- wasi: retry the Node Test step to absorb the shared-dlmalloc flake (#10699) by @hyfdev
- append benchmark results to storage as JSON lines (#10682) by @IWANABETHATGUY
- deps: update github actions (#10683) by @renovate[bot]
- deps: update dependency rolldown-plugin-dts to v0.28.2 (#10679) by @renovate[bot]
- deps: update dependency rolldown-plugin-dts to v0.28.1 (#10674) by @renovate[bot]

### ❤️ New Contributors

* @melbinjp made their first contribution in [#10719](#10719)
* @Freakazo made their first contribution in [#10591](#10591)
* @marcoroth made their first contribution in [#10655](#10655)

Co-authored-by: shulaoda <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants