Skip to content

fix: escape export names in defineProperty calls - #11047

Merged
hyfdev merged 1 commit into
rolldown:mainfrom
camc314:codex/escape-export-property-names
Sep 30, 2026
Merged

hyfdev merged 1 commit into
rolldown:mainfrom
camc314:codex/escape-export-property-names

Conversation

@camc314

@camc314 camc314 commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Export names were interpolated directly into a single-quoted string in the Object.defineProperty renderers. Names containing newlines, quotes, or backslashes could produce invalid JavaScript, with chunk-parser recovery silently dropping the output.

@camc314
camc314 marked this pull request as ready for review September 30, 2026 14:23
@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.

@camc314 camc314 changed the title fix: escape export names in defineProperty calls fix: escape export names in defineProperty calls Sep 30, 2026
@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/escape-export-property-names (cd6936f) with main (45e407b)

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 merged commit 25e16ff into rolldown:main Sep 30, 2026
36 checks passed
graphite-app Bot pushed a commit that referenced this pull request Oct 5, 2026
Malformed generated JavaScript can make dead code elimination (DCE) or minification succeed with an empty or truncated chunk. This change fails the build and reports the generated file, error location, and parser diagnostic.

For a valid entry with `banner: 'const = ;'`, `entryFileNames: 'bundle.js'`, and `minify: 'dce-only'`:

Before:

```text
Build succeeds; bundle.js is empty.
```

After:

```text
[PARSE_ERROR] Unexpected token
bundle.js:1:7
```

## Changes

Chunk parsing can return a recovered AST alongside diagnostics. Both fatal parse failures and recoverable diagnostics stop DCE/minification and propagate as `PARSE_ERROR` diagnostics with the generated source and filename.

Export names are serialized once per `Object.defineProperty` renderer call. The `concat_string!` macro evaluates each argument twice, so storing the serialized name in a local variable avoids repeating the serialization and allocation.

Follow-up to #11047.
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. 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.
- CJS/IIFE external and string-name snapshots now use live getters, rather
  than capturing external properties once. The new re-export facade symbols
  select the existing externalLiveBindings path. Execution coverage verifies
  that replacing https.request updates the named export without requiring
  a __toESM wrapper or a 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.

Oxc-Revision: cc82598ffd16ae341966d2f13ca8738ff5a79ebc
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.

2 participants