Repository navigation
fix: honor externalLiveBindings for imported exports - #11048
Conversation
externalLiveBindings for imported exports
abdaa9a to
153cc5a
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Merging this PR will not alter performance
Comparing Footnotes
|
153cc5a to
06fcc4b
Compare
There was a problem hiding this comment.
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.
6f8d4a2 to
5e503b1
Compare
✅ Deploy Preview for rolldown-rs canceled.
|
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
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
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
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
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
## 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
## [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]>
Summary
Given the following two cases:
and
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.local const/reassignment flags. Use
externalLiveBindingsfor external namedexport forwarding, including imports forwarded through bundled barrels.
barrel forwarding in CJS/ESM output.