Skip to content

fix: honor externalLiveBindings for imported exports - #11048

Merged
hyfdev merged 1 commit into
rolldown:mainfrom
camc314:codex/external-export-live-bindings
Oct 5, 2026
Merged

hyfdev merged 1 commit into
rolldown:mainfrom
camc314:codex/external-export-live-bindings

Conversation

@camc314

@camc314 camc314 commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Given the following two cases:

import { value } from 'external';
export { value };

and

export { value } from 'external';

They should not have different live-binding behaviour. Local write analysis can mark an import IsNotReassigned, but that does not prove the external module's exported value is immutable.

  • Resolve the canonical symbol and recognize external imports before consulting
    local const/reassignment flags. Use externalLiveBindings for external named
    export forwarding, including imports forwarded through bundled barrels.
  • Keep the disabled option's snapshot behavior and bundled-binding rules intact.
  • Add a focused Rust execution/snapshot regression for both export forms and
    barrel forwarding in CJS/ESM output.

@camc314 camc314 changed the title fix: honor externalLiveBindings for imported exports fix: honor externalLiveBindings for imported exports Sep 30, 2026
@camc314
camc314 force-pushed the codex/external-export-live-bindings branch 4 times, most recently from abdaa9a to 153cc5a Compare September 30, 2026 15:07
@camc314
camc314 marked this pull request as ready for review September 30, 2026 15:15
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@codspeed

codspeed Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 7 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing camc314:codex/external-export-live-bindings (5e503b1) with main (f488489)

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

@camc314
camc314 force-pushed the codex/external-export-live-bindings branch from 153cc5a to 06fcc4b Compare October 2, 2026 09:48
Copilot AI balanced review requested due to automatic review settings October 2, 2026 09:48

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 review overview

🟢 Approval recommended

The localized fix has focused regression coverage and no blocking issues identified in static review; tests were not executed.

Review effort: Balanced
Findings: None

What changed in this PR

Makes Rolldown honor externalLiveBindings consistently for external exports, whether forwarded directly, through imports, or through bundled barrels.

Changes:

  • Checks external imports before local immutability flags.
  • Adds CJS/ESM regression coverage and updates getter snapshots.
File Description
crates/​rolldown/​tests/​rolldown/​topics/​cjs_module_lexer_compat/​import_and_reexport/​artifacts.snap Updates named-export getter output.
crates/​rolldown/​tests/​rolldown/​issues/​3456/​artifacts.snap Updates escaped-name getter output.
crates/​rolldown/​tests/​rolldown/​function/​external/​external_named_export_live_bindings/​reexported.js Adds direct external re-export fixture.
crates/​rolldown/​tests/​rolldown/​function/​external/​external_named_export_live_bindings/​reexported-barrel.js Adds re-export barrel fixture.
crates/​rolldown/​tests/​rolldown/​function/​external/​external_named_export_live_bindings/​imported.js Adds imported-export fixture.
crates/​rolldown/​tests/​rolldown/​function/​external/​external_named_export_live_bindings/​imported-barrel.js Adds imported-export barrel fixture.
crates/​rolldown/​tests/​rolldown/​function/​external/​external_named_export_live_bindings/​artifacts.snap Records CJS/ESM regression output.
crates/​rolldown/​tests/​rolldown/​function/​external/​external_named_export_live_bindings/​_test.mjs Verifies exports reflect external mutations.
crates/​rolldown/​tests/​rolldown/​function/​external/​external_named_export_live_bindings/​_config.json Configures four entries and both formats.
crates/​rolldown/​tests/​rolldown/​function/​external/​external_interop_only_reachable_via_entry_export/​artifacts.snap Updates named interop forwarding output.
crates/​rolldown/​tests/​rolldown/​function/​external/​external_interop_default_reexport_only_reachable_via_entry_export/​artifacts.snap Updates default interop forwarding output.
crates/​rolldown/​tests/​esbuild/​default/​string_export_names_iife/​artifacts.snap Updates IIFE string-name getter output.
crates/​rolldown/​tests/​esbuild/​default/​string_export_names_common_js/​artifacts.snap Updates CJS string-name getter output.
crates/​rolldown/​src/​utils/​chunk/​render_chunk_exports.rs Prioritizes external live-binding configuration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@hyfdev hyfdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Well done!

@hyfdev
hyfdev enabled auto-merge (squash) October 5, 2026 14:13
@hyfdev
hyfdev force-pushed the codex/external-export-live-bindings branch from 6f8d4a2 to 5e503b1 Compare October 5, 2026 14:13
@netlify

netlify Bot commented Oct 5, 2026

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs canceled.

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

@hyfdev
hyfdev merged commit ce90f20 into rolldown:main Oct 5, 2026
37 checks passed
camc314 added a commit to camc314/rolldown that referenced this pull request Oct 5, 2026
oxc-project/oxc#25533

First-bad Oxc commit: cc82598ffd16ae341966d2f13ca8738ff5a79ebc
Last verified parent: ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff

Oxc now combines import-then-export pairs into direct re-exports, including
in the tree-shake-only scan prepass. On the original Rolldown base, both
published 0.152.0 and the immediate parent reproduce the old Rust snapshots;
the merge introduces these changes.

Keep all snapshot groups with this root cause:
- ESM facade, splitting, preserve-modules, circular re-export, advanced-chunk,
  debug-info, chunk-merging, wrapper, entry-export and TLA snapshots now emit
  direct re-exports instead of redundant import bindings followed by exports.
  Imported/exported names and chunk targets are preserved, including string
  names, default aliases and namespace aliases.
- The original CJS/IIFE external and string-name snapshot changes selected
  live getters instead of capturing external properties once. Rolldown
  upstream rolldown#11048 now applies externalLiveBindings consistently to both
  import/export pairs and direct re-exports, so those six getter snapshot
  changes are already upstream and no longer part of this migration's diff.
  Retain execution coverage verifying that replacing https.request updates
  the named export without a __toESM wrapper or runtime dependency in the
  named-only entry.
- Issue 3456 exposed unescaped getter keys: newline, quote and backslash
  characters made the rendered chunk invalid and its output disappear. Quote
  getter keys with JSON serialization, as property-access rendering already
  does. Execute the CJS variant against a stub external and verify the escaped
  export name and its live value; its snapshot must retain a valid getter.
- The strict-order monolithic CJS-barrel snapshot moves the import wrapper
  into the generated CJS proxy after the entry becomes a direct re-export.
  Its initialization and namespace behavior remain covered by execution.
- lower_using_hoisting now prints a direct export-from declaration instead
  of the import/export pair; the using declarations themselves are unchanged.

The two lazy-barrel own-export tests pass on the Oxc parent and fail at the
merge: d.js is now a direct re-export dependency. After its transform marks
it side-effect-free, unused dd no longer causes dd.js to load. Update both
transform-count assertions from eleven to ten and explicitly assert that
dd.js is skipped while the other dependencies are still transformed.

Generate snapshots through repository tests and rerun repository generation.
Leave independently versioned Oxc repositories and npm packages unchanged.

On the current Rolldown base, also regenerate the newly added issue 11058
fixture: its ESM facade now directly re-exports InjectionToken and Injector
from ext instead of printing a redundant import/export pair. On the same
Rolldown base, the Oxc parent ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff
retains the old snapshot; cc82598ffd16ae341966d2f13ca8738ff5a79ebc
introduces the new snapshot. The last-known-good tracking pin and 0.153.0
produce identical output. The CJS variant is unchanged. This is further
coverage of #25533, not a separate release regression.

The escaped getter fix described above is now already supplied by Rolldown
upstream rolldown#11047; retain its execution coverage, without duplicating the fix.

After rebasing onto Rolldown upstream rolldown#11048 at
ce90f20, regenerate its new
external_named_export_live_bindings fixture with just t-run. Its four ESM
facades now directly re-export foo/request, rather than printing redundant
import/export pairs; the CJS getter output and execution are unchanged.
On this identical Rolldown base, the Oxc parent ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff
reproduces the upstream snapshot, while the first-bad commit
cc82598ffd16ae341966d2f13ca8738ff5a79ebc produces a snapshot byte-identical
to the published 0.153.0 release. Keep this generated ESM-only snapshot
adjustment with #25533, not with the mechanical release commits.

Oxc-Revision: cc82598ffd16ae341966d2f13ca8738ff5a79ebc
camc314 added a commit to camc314/rolldown that referenced this pull request Oct 6, 2026
oxc-project/oxc#25533

First-bad Oxc commit: cc82598ffd16ae341966d2f13ca8738ff5a79ebc
Last verified parent: ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff

Oxc now combines import-then-export pairs into direct re-exports, including
in the tree-shake-only scan prepass. On the original Rolldown base, both
published 0.152.0 and the immediate parent reproduce the old Rust snapshots;
the merge introduces these changes.

Keep all snapshot groups with this root cause:
- ESM facade, splitting, preserve-modules, circular re-export, advanced-chunk,
  debug-info, chunk-merging, wrapper, entry-export and TLA snapshots now emit
  direct re-exports instead of redundant import bindings followed by exports.
  Imported/exported names and chunk targets are preserved, including string
  names, default aliases and namespace aliases.
- The original CJS/IIFE external and string-name snapshot changes selected
  live getters instead of capturing external properties once. Rolldown
  upstream rolldown#11048 now applies externalLiveBindings consistently to both
  import/export pairs and direct re-exports, so those six getter snapshot
  changes are already upstream and no longer part of this migration's diff.
  Retain execution coverage verifying that replacing https.request updates
  the named export without a __toESM wrapper or runtime dependency in the
  named-only entry.
- Issue 3456 exposed unescaped getter keys: newline, quote and backslash
  characters made the rendered chunk invalid and its output disappear. Quote
  getter keys with JSON serialization, as property-access rendering already
  does. Execute the CJS variant against a stub external and verify the escaped
  export name and its live value; its snapshot must retain a valid getter.
- The strict-order monolithic CJS-barrel snapshot moves the import wrapper
  into the generated CJS proxy after the entry becomes a direct re-export.
  Its initialization and namespace behavior remain covered by execution.
- lower_using_hoisting now prints a direct export-from declaration instead
  of the import/export pair; the using declarations themselves are unchanged.

The two lazy-barrel own-export tests pass on the Oxc parent and fail at the
merge: d.js is now a direct re-export dependency. After its transform marks
it side-effect-free, unused dd no longer causes dd.js to load. Update both
transform-count assertions from eleven to ten and explicitly assert that
dd.js is skipped while the other dependencies are still transformed.

Generate snapshots through repository tests and rerun repository generation.
Leave independently versioned Oxc repositories and npm packages unchanged.

On the current Rolldown base, also regenerate the newly added issue 11058
fixture: its ESM facade now directly re-exports InjectionToken and Injector
from ext instead of printing a redundant import/export pair. On the same
Rolldown base, the Oxc parent ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff
retains the old snapshot; cc82598ffd16ae341966d2f13ca8738ff5a79ebc
introduces the new snapshot. The last-known-good tracking pin and 0.153.0
produce identical output. The CJS variant is unchanged. This is further
coverage of #25533, not a separate release regression.

The escaped getter fix described above is now already supplied by Rolldown
upstream rolldown#11047; retain its execution coverage, without duplicating the fix.

After rebasing onto Rolldown upstream rolldown#11048 at
ce90f20, regenerate its new
external_named_export_live_bindings fixture with just t-run. Its four ESM
facades now directly re-export foo/request, rather than printing redundant
import/export pairs; the CJS getter output and execution are unchanged.
On this identical Rolldown base, the Oxc parent ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff
reproduces the upstream snapshot, while the first-bad commit
cc82598ffd16ae341966d2f13ca8738ff5a79ebc produces a snapshot byte-identical
to the published 0.153.0 release. Keep this generated ESM-only snapshot
adjustment with #25533, not with the mechanical release commits.

Oxc-Revision: cc82598ffd16ae341966d2f13ca8738ff5a79ebc
camc314 added a commit to camc314/rolldown that referenced this pull request Oct 6, 2026
oxc-project/oxc#25533

First-bad Oxc commit: cc82598ffd16ae341966d2f13ca8738ff5a79ebc
Last verified parent: ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff

Oxc now combines import-then-export pairs into direct re-exports, including
in the tree-shake-only scan prepass. On the original Rolldown base, both
published 0.152.0 and the immediate parent reproduce the old Rust snapshots;
the merge introduces these changes.

Keep all snapshot groups with this root cause:
- ESM facade, splitting, preserve-modules, circular re-export, advanced-chunk,
  debug-info, chunk-merging, wrapper, entry-export and TLA snapshots now emit
  direct re-exports instead of redundant import bindings followed by exports.
  Imported/exported names and chunk targets are preserved, including string
  names, default aliases and namespace aliases.
- The original CJS/IIFE external and string-name snapshot changes selected
  live getters instead of capturing external properties once. Rolldown
  upstream rolldown#11048 now applies externalLiveBindings consistently to both
  import/export pairs and direct re-exports, so those six getter snapshot
  changes are already upstream and no longer part of this migration's diff.
  Retain execution coverage verifying that replacing https.request updates
  the named export without a __toESM wrapper or runtime dependency in the
  named-only entry.
- Issue 3456 exposed unescaped getter keys: newline, quote and backslash
  characters made the rendered chunk invalid and its output disappear. Quote
  getter keys with JSON serialization, as property-access rendering already
  does. Execute the CJS variant against a stub external and verify the escaped
  export name and its live value; its snapshot must retain a valid getter.
- The strict-order monolithic CJS-barrel snapshot moves the import wrapper
  into the generated CJS proxy after the entry becomes a direct re-export.
  Its initialization and namespace behavior remain covered by execution.
- lower_using_hoisting now prints a direct export-from declaration instead
  of the import/export pair; the using declarations themselves are unchanged.

The two lazy-barrel own-export tests pass on the Oxc parent and fail at the
merge: d.js is now a direct re-export dependency. After its transform marks
it side-effect-free, unused dd no longer causes dd.js to load. Update both
transform-count assertions from eleven to ten and explicitly assert that
dd.js is skipped while the other dependencies are still transformed.

Generate snapshots through repository tests and rerun repository generation.
Leave independently versioned Oxc repositories and npm packages unchanged.

On the current Rolldown base, also regenerate the newly added issue 11058
fixture: its ESM facade now directly re-exports InjectionToken and Injector
from ext instead of printing a redundant import/export pair. On the same
Rolldown base, the Oxc parent ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff
retains the old snapshot; cc82598ffd16ae341966d2f13ca8738ff5a79ebc
introduces the new snapshot. The last-known-good tracking pin and 0.153.0
produce identical output. The CJS variant is unchanged. This is further
coverage of #25533, not a separate release regression.

The escaped getter fix described above is now already supplied by Rolldown
upstream rolldown#11047; retain its execution coverage, without duplicating the fix.

After rebasing onto Rolldown upstream rolldown#11048 at
ce90f20, regenerate its new
external_named_export_live_bindings fixture with just t-run. Its four ESM
facades now directly re-export foo/request, rather than printing redundant
import/export pairs; the CJS getter output and execution are unchanged.
On this identical Rolldown base, the Oxc parent ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff
reproduces the upstream snapshot, while the first-bad commit
cc82598ffd16ae341966d2f13ca8738ff5a79ebc produces a snapshot byte-identical
to the published 0.153.0 release. Keep this generated ESM-only snapshot
adjustment with #25533, not with the mechanical release commits.

Oxc-Revision: cc82598ffd16ae341966d2f13ca8738ff5a79ebc
camc314 added a commit to camc314/rolldown that referenced this pull request Oct 7, 2026
oxc-project/oxc#25533

First-bad Oxc commit: cc82598ffd16ae341966d2f13ca8738ff5a79ebc
Last verified parent: ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff

Oxc now combines import-then-export pairs into direct re-exports, including
in the tree-shake-only scan prepass. On the original Rolldown base, both
published 0.152.0 and the immediate parent reproduce the old Rust snapshots;
the merge introduces these changes.

Keep all snapshot groups with this root cause:
- ESM facade, splitting, preserve-modules, circular re-export, advanced-chunk,
  debug-info, chunk-merging, wrapper, entry-export and TLA snapshots now emit
  direct re-exports instead of redundant import bindings followed by exports.
  Imported/exported names and chunk targets are preserved, including string
  names, default aliases and namespace aliases.
- The original CJS/IIFE external and string-name snapshot changes selected
  live getters instead of capturing external properties once. Rolldown
  upstream rolldown#11048 now applies externalLiveBindings consistently to both
  import/export pairs and direct re-exports, so those six getter snapshot
  changes are already upstream and no longer part of this migration's diff.
  Retain execution coverage verifying that replacing https.request updates
  the named export without a __toESM wrapper or runtime dependency in the
  named-only entry.
- Issue 3456 exposed unescaped getter keys: newline, quote and backslash
  characters made the rendered chunk invalid and its output disappear. Quote
  getter keys with JSON serialization, as property-access rendering already
  does. Execute the CJS variant against a stub external and verify the escaped
  export name and its live value; its snapshot must retain a valid getter.
- The strict-order monolithic CJS-barrel snapshot moves the import wrapper
  into the generated CJS proxy after the entry becomes a direct re-export.
  Its initialization and namespace behavior remain covered by execution.
- lower_using_hoisting now prints a direct export-from declaration instead
  of the import/export pair; the using declarations themselves are unchanged.

The two lazy-barrel own-export tests pass on the Oxc parent and fail at the
merge: d.js is now a direct re-export dependency. After its transform marks
it side-effect-free, unused dd no longer causes dd.js to load. Update both
transform-count assertions from eleven to ten and explicitly assert that
dd.js is skipped while the other dependencies are still transformed.

Generate snapshots through repository tests and rerun repository generation.
Leave independently versioned Oxc repositories and npm packages unchanged.

On the current Rolldown base, also regenerate the newly added issue 11058
fixture: its ESM facade now directly re-exports InjectionToken and Injector
from ext instead of printing a redundant import/export pair. On the same
Rolldown base, the Oxc parent ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff
retains the old snapshot; cc82598ffd16ae341966d2f13ca8738ff5a79ebc
introduces the new snapshot. The last-known-good tracking pin and 0.153.0
produce identical output. The CJS variant is unchanged. This is further
coverage of #25533, not a separate release regression.

The escaped getter fix described above is now already supplied by Rolldown
upstream rolldown#11047; retain its execution coverage, without duplicating the fix.

After rebasing onto Rolldown upstream rolldown#11048 at
ce90f20, regenerate its new
external_named_export_live_bindings fixture with just t-run. Its four ESM
facades now directly re-export foo/request, rather than printing redundant
import/export pairs; the CJS getter output and execution are unchanged.
On this identical Rolldown base, the Oxc parent ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff
reproduces the upstream snapshot, while the first-bad commit
cc82598ffd16ae341966d2f13ca8738ff5a79ebc produces a snapshot byte-identical
to the published 0.153.0 release. Keep this generated ESM-only snapshot
adjustment with #25533, not with the mechanical release commits.

Oxc-Revision: cc82598ffd16ae341966d2f13ca8738ff5a79ebc
camc314 added a commit to camc314/rolldown that referenced this pull request Oct 7, 2026
oxc-project/oxc#25533

First-bad Oxc commit: cc82598ffd16ae341966d2f13ca8738ff5a79ebc
Last verified parent: ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff

Oxc now combines import-then-export pairs into direct re-exports, including
in the tree-shake-only scan prepass. On the original Rolldown base, both
published 0.152.0 and the immediate parent reproduce the old Rust snapshots;
the merge introduces these changes.

Keep all snapshot groups with this root cause:
- ESM facade, splitting, preserve-modules, circular re-export, advanced-chunk,
  debug-info, chunk-merging, wrapper, entry-export and TLA snapshots now emit
  direct re-exports instead of redundant import bindings followed by exports.
  Imported/exported names and chunk targets are preserved, including string
  names, default aliases and namespace aliases.
- The original CJS/IIFE external and string-name snapshot changes selected
  live getters instead of capturing external properties once. Rolldown
  upstream rolldown#11048 now applies externalLiveBindings consistently to both
  import/export pairs and direct re-exports, so those six getter snapshot
  changes are already upstream and no longer part of this migration's diff.
  Retain execution coverage verifying that replacing https.request updates
  the named export without a __toESM wrapper or runtime dependency in the
  named-only entry.
- Issue 3456 exposed unescaped getter keys: newline, quote and backslash
  characters made the rendered chunk invalid and its output disappear. Quote
  getter keys with JSON serialization, as property-access rendering already
  does. Execute the CJS variant against a stub external and verify the escaped
  export name and its live value; its snapshot must retain a valid getter.
- The strict-order monolithic CJS-barrel snapshot moves the import wrapper
  into the generated CJS proxy after the entry becomes a direct re-export.
  Its initialization and namespace behavior remain covered by execution.
- lower_using_hoisting now prints a direct export-from declaration instead
  of the import/export pair; the using declarations themselves are unchanged.

The two lazy-barrel own-export tests pass on the Oxc parent and fail at the
merge: d.js is now a direct re-export dependency. After its transform marks
it side-effect-free, unused dd no longer causes dd.js to load. Update both
transform-count assertions from eleven to ten and explicitly assert that
dd.js is skipped while the other dependencies are still transformed.

Generate snapshots through repository tests and rerun repository generation.
Leave independently versioned Oxc repositories and npm packages unchanged.

On the current Rolldown base, also regenerate the newly added issue 11058
fixture: its ESM facade now directly re-exports InjectionToken and Injector
from ext instead of printing a redundant import/export pair. On the same
Rolldown base, the Oxc parent ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff
retains the old snapshot; cc82598ffd16ae341966d2f13ca8738ff5a79ebc
introduces the new snapshot. The last-known-good tracking pin and 0.153.0
produce identical output. The CJS variant is unchanged. This is further
coverage of #25533, not a separate release regression.

The escaped getter fix described above is now already supplied by Rolldown
upstream rolldown#11047; retain its execution coverage, without duplicating the fix.

After rebasing onto Rolldown upstream rolldown#11048 at
ce90f20, regenerate its new
external_named_export_live_bindings fixture with just t-run. Its four ESM
facades now directly re-export foo/request, rather than printing redundant
import/export pairs; the CJS getter output and execution are unchanged.
On this identical Rolldown base, the Oxc parent ec4c2898dcfb4c7dc73be4383c8018fcb0a33fff
reproduces the upstream snapshot, while the first-bad commit
cc82598ffd16ae341966d2f13ca8738ff5a79ebc produces a snapshot byte-identical
to the published 0.153.0 release. Keep this generated ESM-only snapshot
adjustment with #25533, not with the mechanical release commits.

Oxc-Revision: cc82598ffd16ae341966d2f13ca8738ff5a79ebc
shulaoda pushed a commit that referenced this pull request Oct 7, 2026
## Summary

- Upgrade Oxc Rust dependencies to 0.153.0.
- Upgrade `@oxc-project/runtime`, `@oxc-project/types`, `oxc-parser`,
and `oxc-transform` to exactly 0.153.0.

## Root causes

### oxc-project/oxc#25533

oxc-project/oxc#25533

Oxc combines import/export pairs into direct re-exports, including
during the tree-shaking scan. ESM facade/chunk snapshots therefore emit
`export … from` instead of redundant import/export pairs. The
strict-order CJS barrel wrapper relocation preserves initialization, and
lazy-barrel tests now expect the unused `dd.js` dependency to be skipped
(10 transforms instead of 11).

After rebasing onto merged Rolldown #11048, the six external live-getter
snapshot changes are already upstream and no longer appear in this diff.
External-mutation and escaped-export-name execution coverage is
retained; the escaped-getter rendering fix is also already upstream
(#11047).

Regenerate the remaining snapshots through repository commands,
including issue 11058 and #11048's new
`external_named_export_live_bindings` fixture. The latter's four ESM
facades now emit direct re-exports; CJS output is unchanged.
Parent/first-bad comparisons on the same Rolldown base confirm #25533
introduces both fixture adjustments, with the new live-binding fixture's
first-bad output byte-identical to 0.153.0.

Commit: cc82598ffd16ae341966d2f13ca8738ff5a79ebc

### oxc-project/oxc#25534

oxc-project/oxc#25534

Oxc merges compatible imports from the same module while preserving
first-request evaluation order and binding identity. Import-form/browser
snapshots lose 14 redundant unresolved-module warnings;
default/namespace snapshots combine compatible clauses, and the external
CJS conversion snapshot removes redundant imports and inlines a
single-use re-export namespace.

Regenerate those snapshots and their affected esbuild comparison report
through repository commands. A focused ESM/CJS execution fixture
verifies that dependencies execute once in the original order and
imported aliases retain their identity.

Commit: adb1139e6484ab978fa1431f261ea921d8410760
@rolldown-guard rolldown-guard Bot mentioned this pull request Oct 7, 2026
shulaoda added a commit that referenced this pull request Oct 7, 2026
## [1.2.13] - 2026-10-07

### 🚀 Features

- rolldown_plugin_vite_import_glob: follow file creation and deletion via hotUpdate (#10550) by @shulaoda
- inline-common-chunks: deduplicate shared code along known loading paths (#11093) by @hyfdev
- rolldown_plugin_vite_import_glob: record a matcher per glob call in dev (#10592) by @shulaoda
- rolldown_plugin_vite_import_glob: watch the directory each glob reads (#10549) by @shulaoda
- watch: hand watch.exclude to notify as its ignore filter (#11008) by @shulaoda
- dev: add `experimental.devMode.hotUpdate` option (#11123) by @h-a-n-a

### 🐛 Bug Fixes

- renamer: check the printed name of namespace-alias imports for captures (#11129) by @IWANABETHATGUY
- devtools: honor `devtools.sessionId` by @Brooooooklyn
- renamer: keep a renamed nested binding off its module's top-level bindings (#11128) by @IWANABETHATGUY
- dev: keep `this` undefined when calling an imported function in HMR patches and lazy chunks (#11126) by @h-a-n-a
- dev: read string-named imports correctly in HMR patches and lazy chunks (#11127) by @h-a-n-a
- sanitize preserveModules chunk names after resolving the relative path (#11087) by @waltuov
- keep the `with` clause on bare external imports (#11100) by @IWANABETHATGUY
- generator: filter DISABLE_JS_HOOK bits from generated HookUsage (#10346) by @Brooooooklyn
- dev: make the module factory async for top-level await (#11118) by @h-a-n-a
- node: give each renderChunk call its own meta object (#11115) by @Brooooooklyn
- honor `externalLiveBindings` for imported exports (#11048) by @camc314
- dev: keep a late payload from replacing newer module code (#11030) by @h-a-n-a
- binding: use-after-free in async `transform` with a `TsconfigCache` (#11080) by @shulaoda
- fail on chunk syntax errors and escape export names once (#11051) by @hyfdev
- dev: ship newly imported modules the client never received (#11029) by @h-a-n-a
- code-splitting: avoid cycles from redundant re-export initialization (#11073) by @hyfdev
- link: treat re-exports of the same external binding as one export (#11069) by @IWANABETHATGUY
- escape namespace properties in IIFE and UMD output (#11085) by @hyfdev
- escape dependency paths in CJS and UMD output (#11084) by @hyfdev
- use computed access for arbitrary import names (#11083) by @hyfdev
- generate valid bindings for shimmed exports (#11082) by @hyfdev
- dev: reload the page when an HMR update fails after merging its edit (#11031) by @h-a-n-a
- dev/lazy: ship the deps of a module that a patch shipped but never ran (#11028) by @h-a-n-a
- code-splitting: don't move init calls in front of unwrapped JSON modules (#11062) by @IWANABETHATGUY
- escape export names in `defineProperty` calls (#11047) by @camc314

### 📚 Documentation

- say the CLI bundles multiple configs one after another (#11111) by @Brooooooklyn
- add `renderChunk` hook filter docs (#11065) by @sapphi-red

### ⚡ Performance

- use `concat_string!` instead of `format!` for plain string joins (#11139) by @IWANABETHATGUY
- utils: evaluate each `concat_string!` argument once (#11105) by @IWANABETHATGUY
- json: escape `JSON.parse` string with `json-escape-simd` (#11104) by @IWANABETHATGUY
- unwrap JSON modules with a non-object root (#11066) by @IWANABETHATGUY

### 🧪 Testing

- inline-common-chunks: fix flaky inlineCommonChunks concurrent imports (#11088) by @hyfdev

### ⚙️ Miscellaneous Tasks

- deps: upgrade oxc to 0.153.0 (#11109) by @camc314
- update pnpm to v12 (#10876) by @btea
- deps: update pnpm to v11.28.0 (#11049) by @renovate[bot]
- deps: update rollup submodule for tests to v4.64.0 (#11116) by @rolldown-guard[bot]
- deps: update napi (#11137) by @renovate[bot]
- scripts: spawn the rolldown CLI without a shell in setup-vite (#10875) by @Brooooooklyn
- deps: bump `@napi-rs/wasm-runtime` to `~1.2.5` (#11117) by @shulaoda
- deps: update napi (#11108) by @renovate[bot]
- deps: update taiki-e/install-action action to v2.87.22 (#11096) by @renovate[bot]
- deps: update npm packages (#11095) by @renovate[bot]
- deps: update rust crates (#11097) by @renovate[bot]
- deps: update napi (#11063) by @renovate[bot]
- deps: update dependency rust to v1.99.0 (#11071) by @renovate[bot]
- deps: update dependency vite-plus to v1 (#11056) by @renovate[bot]

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants