Skip to content

fix(code-splitting): point a two-argument dynamic import at the chunk that holds the module - #10479

Merged
graphite-app[bot] merged 1 commit into
mainfrom
options-import-keeps-entry
Jul 28, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
options-import-keeps-entry

Conversation

@hyfdev

@hyfdev hyfdev commented Jul 27, 2026 •

Copy link
Copy Markdown
Member

A dynamic import written with a second argument — import('./target.js', {}), or anything carrying with { type: … } — keeps the specifier the source wrote, while the module it names ships inside the bundle under a different name. Loading such a build fails with ERR_MODULE_NOT_FOUND. This makes a two-argument call produce exactly what the same call without the second argument produces.

// input
export const loaded = import('./target.js', {}).then((target) => target.value);
// before — the bundle emits target-oUvUsQEi.js, and nothing is at ./target.js
const loaded = import("./target.js", {}).then((target) => target.value);

// after
const loaded = import("./target-oUvUsQEi.js").then((target) => target.value);

Problem

Nothing unusual is needed to hit this: default output settings, no code-splitting configuration, one call site. The failure gets quieter when the target is inlined rather than given its own chunk — with

export const loaded = import('./data.json', { with: { type: 'json' } });

the JSON module is inlined into the importing chunk and no file is emitted for it at all, yet the call still names ./data.json. In a directory where the source tree sits next to the output, that resolves to the original file and the build silently ends up with two copies of the module instead of failing. CJS output has a third shape: the same call also escapes the import() → require() conversion, so a CJS bundle ships a native import() at that site.

The dynamic-import rewrite in the module finalizer — the pass that redirects a call at the chunk that ends up holding the module, collapses it when importer and target share a chunk, and converts it for CJS output — returns early whenever the call has a second argument, before it touches the specifier. Nothing downstream picks the call up again. The early return carries no recorded rationale; it predates the current control flow and reads as "not handled yet".

That leaves two-argument calls as the only place where import attributes mean anything for a bundled module. Everywhere else they are inert: they are read only when rendering an import of an external module, they select no loader (a .txt file holding JSON and marked type: 'json' still loads as text), they do not affect module identity (the same module imported with and without attributes yields one instance), and a static attributed import of a bundled module already drops them.

Only call sites with a second argument are affected. External and unresolved targets are not — that is where attributes are load-bearing and the current behavior is correct — and neither are calls whose specifier is not statically known.

Fix

When the target is a module rolldown bundles, drop the second argument and let the call take the ordinary path.

The specifier is then redirected at the chunk that emits the module, the merged-entry collapse and namespace extraction apply, and CJS output converts the call like any other — none of that machinery changes, it simply stops being skipped. Dropping the attributes is what the rest of the pipeline already does for bundled modules, so the result is byte-identical to writing the call without its second argument. External targets, unresolved targets, and computed specifiers keep bailing, and an external call is now explicitly protected from the CJS require() conversion, which cannot carry attributes.

Why not keep a file at the name the source wrote. The first revision of this PR did that: it stopped the chunk optimizer from merging away an entry named by a two-argument call. That only helps when the emitted filename happens to equal the path the source wrote — with hashed names or a chunk subdirectory the specifier still dangles — it costs a merge that was otherwise sound, and it cannot address the inlined case at all, where by construction no file carries that name. This supersedes it: the guard is removed, along with the equivalent guard merged in #10456 and the import-record flag both used.

Non-goals. Making attributes meaningful for bundled modules — selecting a module type, distinguishing instances per attribute, warning on conflicting attributes the way Rollup does — is a separate and much larger change; this only stops treating a two-argument call as unrewritable. An options expression with side effects is no longer evaluated when the target is bundled; the argument is spec'd as an object literal carrying with, and such a call site does not load today anyway.

Validation

New fixtures, each red before the finalizer change and green after:

  • topics/dynamic_import_options/hashed_chunk_names — default hashed names, nothing merged. ERR_MODULE_NOT_FOUND before; resolves and returns the value after. This is the case the removed guard could never fix.
  • topics/dynamic_import_options/json_module_attribute — with { type: 'json' } on an inlined JSON module. Points at the emitting chunk with no with clause, and asserts the data at runtime.
  • topics/dynamic_import_options/cjs_format — pins that the call converts like a one-argument one instead of staying a native import(). Its CJS cell was runtime-green before, because Node's ESM loader resolves the CJS chunk anyway; only the snapshot catches this one.
  • topics/dynamic_import_options/external_target_keeps_attributes and …/non_static_specifier_in_cjs — the two deliberate bails. Byte-identical output before and after.
  • chunk_merging/dynamic_import_with_options_rewrites_specifier (repurposed from …_keeps_entry) — the merged case now collapses into the host chunk instead of keeping a facade.
  • packages/rolldown/tests/…/dynamic-imports-metadata/options-import — dynamicImports names the chunk the call now points at.
  • strict_execution_order_invariants/dynamic_import_options — updated: no facade, specifier rewritten, trigger carried, runtime assertions unchanged.

chunk_merging/tree_shaken_options_import_does_not_keep_entry is deleted; it pinned the removed guard's liveness rule.

One test on main depended on the old behavior and had to be rebuilt: late_order_wrapping_revalidates_output_file used a two-argument import to keep a graph single-chunk through chunk optimization and multi-chunk only after order lowering. It now gets that shape from an emitted chunk for the entry module plus a manual group, and is verified non-vacuous — the same build succeeds with strictExecutionOrder off.

Exactly one pre-existing snapshot changes (the repurposed fixture above); everything else is new files. Full Rust suite matches the baseline failure set by name, and the Node suite is green (883 passed).

@netlify

netlify Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs canceled.

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

@hyfdev
hyfdev marked this pull request as ready for review July 27, 2026 12:43
Copilot AI review requested due to automatic review settings July 27, 2026 12:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

hyfdev commented Jul 27, 2026 •

Copy link
Copy Markdown
Member Author

Merge activity

  • Jul 27, 12:45 PM UTC: The merge label 'graphite: merge-when-ready' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jul 28, 2:19 PM UTC: hyfdev added this pull request to the Graphite merge queue.
  • Jul 28, 2:28 PM UTC: Merged by the Graphite merge queue.

@codspeed

codspeed Bot commented Jul 27, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 3.67%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 1 improved benchmark
✅ 6 untouched benchmarks
⏩ 10 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ bundle@multi-duplicated-top-level-symbol 260.1 ms 250.9 ms +3.67%

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing options-import-keeps-entry (fb271f8) with main (85a7a11)

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

This comment was marked as outdated.

@shulaoda

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5e6e97b82c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

IWANABETHATGUY

This comment was marked as resolved.

@hyfdev hyfdev changed the title fix(code-splitting): keep the entry chunk a two-argument import() names fix(code-splitting): point a two-argument dynamic import at the chunk that holds the module Jul 28, 2026
@hyfdev

hyfdev commented Jul 28, 2026

Copy link
Copy Markdown
Member Author

All four addressed, but the PR changed shape underneath them — worth re-reading rather than diffing against the old version.

The snapshots are back (they were regenerated in a worktree whose path contains imp, which those two fixtures group by, so a local run silently regrouped every module; cargo-test is green now).

Your CJS observation is what sent me back to the premise. If the bail sits above the require() transform, then it also sits above the specifier rewrite — and it does. So a two-argument call never points at the emitted chunk, with or without merging:

const p = import("./target.js", {});          // bundled as target-CXX96dh0.js
const q = import("./other-BTQ0PaZP.js");      // one-argument, rewritten

Nothing merged there, default names. Worse with import('./data.json', { with: { type: 'json' } }): the JSON is inlined, no file is emitted for it, and the call still names ./data.json — next to a source tree that resolves, so you get a second copy instead of an error.

Attributes turn out to be inert for bundled modules everywhere else — read only when rendering external imports, no loader selection, no effect on identity, and static attributed imports already drop them. So the guard was patching one symptom of a call site that is simply never rewritten, and only in the configs where the emitted name happens to equal the source path.

This revision drops the second argument for bundled targets and lets the call take the ordinary path, which makes it byte-identical to the one-argument form. The guard is gone, so is the one from #10456 and the record flag both used — which also dissolves the divergence you flagged between the two scans. External and computed-specifier calls keep bailing, each pinned by a fixture. Coverage for hashed names, CJS, and the attributed-JSON case is in.

Two things you should look at specifically: late_order_wrapping_revalidates_output_file used a two-argument import to build its late-multi-chunk shape and had to be rebuilt on an emitted chunk plus a manual group; and dropping the attributes is reasoning from rolldown's own treatment of static attributed imports, not from any precedent — Rollup's suite only covers external ones. If you think attributes should instead become meaningful for bundled modules, that is the decision to push back on.

… that holds the module (#10479)

A dynamic import written with a second argument — `import('./target.js', {})`, or anything carrying `with { type: … }` — keeps the specifier the source wrote, while the module it names ships inside the bundle under a different name. Loading such a build fails with `ERR_MODULE_NOT_FOUND`. This makes a two-argument call produce exactly what the same call without the second argument produces.

```js
// input
export const loaded = import('./target.js', {}).then((target) => target.value);
```

```js
// before — the bundle emits target-oUvUsQEi.js, and nothing is at ./target.js
const loaded = import("./target.js", {}).then((target) => target.value);

// after
const loaded = import("./target-oUvUsQEi.js").then((target) => target.value);
```

## Problem

Nothing unusual is needed to hit this: default output settings, no code-splitting configuration, one call site. The failure gets quieter when the target is inlined rather than given its own chunk — with

```js
export const loaded = import('./data.json', { with: { type: 'json' } });
```

the JSON module is inlined into the importing chunk and no file is emitted for it at all, yet the call still names `./data.json`. In a directory where the source tree sits next to the output, that resolves to the original file and the build silently ends up with two copies of the module instead of failing. CJS output has a third shape: the same call also escapes the `import()` → `require()` conversion, so a CJS bundle ships a native `import()` at that site.

The dynamic-import rewrite in the module finalizer — the pass that redirects a call at the chunk that ends up holding the module, collapses it when importer and target share a chunk, and converts it for CJS output — returns early whenever the call has a second argument, before it touches the specifier. Nothing downstream picks the call up again. The early return carries no recorded rationale; it predates the current control flow and reads as "not handled yet".

That leaves two-argument calls as the only place where import attributes mean anything for a bundled module. Everywhere else they are inert: they are read only when rendering an import of an *external* module, they select no loader (a `.txt` file holding JSON and marked `type: 'json'` still loads as text), they do not affect module identity (the same module imported with and without attributes yields one instance), and a static attributed import of a bundled module already drops them.

Only call sites with a second argument are affected. External and unresolved targets are not — that is where attributes are load-bearing and the current behavior is correct — and neither are calls whose specifier is not statically known.

## Fix

When the target is a module rolldown bundles, drop the second argument and let the call take the ordinary path.

The specifier is then redirected at the chunk that emits the module, the merged-entry collapse and namespace extraction apply, and CJS output converts the call like any other — none of that machinery changes, it simply stops being skipped. Dropping the attributes is what the rest of the pipeline already does for bundled modules, so the result is byte-identical to writing the call without its second argument. External targets, unresolved targets, and computed specifiers keep bailing, and an external call is now explicitly protected from the CJS `require()` conversion, which cannot carry attributes.

**Why not keep a file at the name the source wrote.** The first revision of this PR did that: it stopped the chunk optimizer from merging away an entry named by a two-argument call. That only helps when the emitted filename happens to equal the path the source wrote — with hashed names or a chunk subdirectory the specifier still dangles — it costs a merge that was otherwise sound, and it cannot address the inlined case at all, where by construction no file carries that name. This supersedes it: the guard is removed, along with the equivalent guard merged in #10456 and the import-record flag both used.

**Non-goals.** Making attributes meaningful for bundled modules — selecting a module type, distinguishing instances per attribute, warning on conflicting attributes the way Rollup does — is a separate and much larger change; this only stops treating a two-argument call as unrewritable. An options *expression* with side effects is no longer evaluated when the target is bundled; the argument is spec'd as an object literal carrying `with`, and such a call site does not load today anyway.

## Validation

New fixtures, each red before the finalizer change and green after:

- `topics/dynamic_import_options/hashed_chunk_names` — default hashed names, nothing merged. `ERR_MODULE_NOT_FOUND` before; resolves and returns the value after. This is the case the removed guard could never fix.
- `topics/dynamic_import_options/json_module_attribute` — `with { type: 'json' }` on an inlined JSON module. Points at the emitting chunk with no `with` clause, and asserts the data at runtime.
- `topics/dynamic_import_options/cjs_format` — pins that the call converts like a one-argument one instead of staying a native `import()`. Its CJS cell was runtime-green before, because Node's ESM loader resolves the CJS chunk anyway; only the snapshot catches this one.
- `topics/dynamic_import_options/external_target_keeps_attributes` and `…/non_static_specifier_in_cjs` — the two deliberate bails. Byte-identical output before and after.
- `chunk_merging/dynamic_import_with_options_rewrites_specifier` (repurposed from `…_keeps_entry`) — the merged case now collapses into the host chunk instead of keeping a facade.
- `packages/rolldown/tests/…/dynamic-imports-metadata/options-import` — `dynamicImports` names the chunk the call now points at.
- `strict_execution_order_invariants/dynamic_import_options` — updated: no facade, specifier rewritten, trigger carried, runtime assertions unchanged.

`chunk_merging/tree_shaken_options_import_does_not_keep_entry` is deleted; it pinned the removed guard's liveness rule.

One test on `main` depended on the old behavior and had to be rebuilt: `late_order_wrapping_revalidates_output_file` used a two-argument import to keep a graph single-chunk through chunk optimization and multi-chunk only after order lowering. It now gets that shape from an emitted chunk for the entry module plus a manual group, and is verified non-vacuous — the same build succeeds with `strictExecutionOrder` off.

Exactly one pre-existing snapshot changes (the repurposed fixture above); everything else is new files. Full Rust suite matches the baseline failure set by name, and the Node suite is green (883 passed).
@graphite-app
graphite-app Bot force-pushed the options-import-keeps-entry branch from 5d68f3d to ddf4bcc Compare July 28, 2026 14:20
@graphite-app
graphite-app Bot merged commit ddf4bcc into main Jul 28, 2026
35 checks passed
@graphite-app
graphite-app Bot deleted the options-import-keeps-entry branch July 28, 2026 14:28
@rolldown-guard rolldown-guard Bot mentioned this pull request Jul 29, 2026
shulaoda added a commit that referenced this pull request Jul 29, 2026
## [1.2.1] - 2026-07-29

### 🚀 Features

- dev: support `hotUpdate` hook (#10305) by @h-a-n-a
- dev: expose `disableWatcher` through the dev engine bindings (#10474) by @shulaoda
- plugin: surface output-option callbacks in [PLUGIN_TIMINGS] (#10411) by @IWANABETHATGUY
- `import.meta.ROLLDOWN_FILE_URL_<referenceId>_<urlId>` support to pass context to `resolveFileUrl` hook (#10297) by @sapphi-red
- dev: skip the HMR update when a module's rebuilt output is unchanged (#10333) by @h-a-n-a
- code-splitting: wrap strict execution order modules on demand (#10104) by @hyfdev
- support `import.meta.ROLLDOWN_FILE_URL_*` (#10296) by @sapphi-red
- implement `resolveFileUrl` plugin hook (#10291) by @sapphi-red
- magic-string: support storeName on overwrite/update (#10312) by @IWANABETHATGUY

### 🐛 Bug Fixes

- external: keep `__toESM` when the importing module is tree-shaken (#10516) by @IWANABETHATGUY
- dev: resolve re-exports from externals through a real import (#10489) by @tbvjaos510
- code-splitting: route CJS barrel initialization per consumer (#10488) by @hyfdev
- error: align filename-pattern diagnostics with Rollup's wording (#10501) by @IWANABETHATGUY
- plugin: validate emitted prebuilt-chunk file names (#10399) by @IWANABETHATGUY
- code-splitting: point a two-argument dynamic import at the chunk that holds the module (#10479) by @hyfdev
- common: align is_path_fragment with Rollup's isPathFragment (#10398) by @IWANABETHATGUY
- code-splitting: never name an internal chunk export `then` (#10480) by @hyfdev
- code-splitting: avoid creating call-site-triggered entry facades (#10485) by @hyfdev
- code-splitting: collect top-level eager order reasons in every strict build (#10463) by @hyfdev
- code-splitting: let a cross-chunk dynamic importer carry the order trigger (#10456) by @hyfdev
- code-splitting: avoid the dynamic-entry facade when the same-chunk collapse carries the trigger (#10433) by @hyfdev
- binding: forward resolveId options.kind to callable builtin plugins (#10440) by @martijnwalraven
- dev: keep the export name of `export * as ns from` (#10476) by @tbvjaos510
- code-splitting: only split an entry facade when something else can load its chunk (#10441) by @hyfdev
- code-splitting: fold the runtime chunk back after order lowering (#10414) by @hyfdev
- runtime: don't leave default undefined for cjs that fakes __esModule (#10453) by @IWANABETHATGUY
- import-glob: escape generated string literals (#10438) by @shantanuraj
- preserve-modules: don't assume every chunk mirrors a module (#10442) by @hyfdev
- filter: treat missing hook inputs as non-matches, not panics (#10443) by @IWANABETHATGUY
- code-splitting: keep CommonJS modules wrapped under strict execution order (#10405) by @hyfdev
- code-splitting: align dynamicImports metadata with the rewritten import() specifier (#10430) by @hyfdev
- dev: skip user plugin hooks for ?rolldown-lazy proxy modules (#10426) by @unknownjedi
- treeshake: preserve side-effect-free spread arguments in manual-pure chains (#10432) by @IWANABETHATGUY
- treeshake: preserve eagerly evaluated child effects of manual pure chains (#10427) by @Nic-Polumeyv
- code-splitting: initialize pure definers behind star re-export barrels under strict execution order (#10409) by @hyfdev
- resolveId: reject string `id` filters (must be a RegExp) (#10412) by @IWANABETHATGUY
- code-splitting: collect eager order reasons for on-demand wrapping (#10387) by @hyfdev
- rolldown: apply output.paths to CJS export-star of external modules (#10406) by @IWANABETHATGUY
- dev: sourcemaps of lazily compiled chunks (#10386) by @tbvjaos510
- plugin: validate emitted file names at emitFile time (#10377) by @Nic-Polumeyv
- guarantee tokio runtime release when close rejects (#10381) by @shulaoda
- code-splitting: make strict transitive init registration deterministic and constant-time (#10320) by @hyfdev
- pair tokio runtime acquire and release on wasm to prevent premature shutdown (#10363) by @shulaoda
- don't body-demand modules from simulated facade chunk includes (#10351) by @IWANABETHATGUY
- tracing: invalid RD_LOG filter and RD_LOG_OUTPUT=json no longer panic (#10343) by @Brooooooklyn
- code-splitting: treat class definition-time global reads as order-sensitive (#10322) by @hyfdev
- code-splitting: deconflict force-included runtime helper statements (#10336) by @hyfdev
- binding: forward all missing parallel JS plugin hooks (#10345) by @Brooooooklyn
- code-splitting: re-derive chunk exec order after the runtime sweep (#10334) by @hyfdev
- types: add undefined to ExistingRawSourceMap optional properties (#10355) by @ocavue
- magic-string: validate relocate ranges before rewiring (#10327) by @IWANABETHATGUY
- add EMPTY_IMPORT_META warning for non-node CJS output (#10222) by @sapphi-red
- call `resolveFileUrl` in a deterministic order (#10330) by @sapphi-red
- magic-string: refuse repeated sendMagicString on a consumed instance (#10331) by @IWANABETHATGUY
- magic-string: refuse to use a MagicString after sendMagicString consumed it (#10326) by @IWANABETHATGUY
- magic-string: reject non-contiguous moves before rewiring the chunk list (#10311) by @IWANABETHATGUY
- handle `./foo/bar` glob pattern the same as `foo/bar` (#10313) by @sapphi-red
- magic-string: throw instead of panicking when append/prepend splits an edited chunk (#10301) by @IWANABETHATGUY
- output: skip separator for empty hoisted functions (#10310) by @hyfdev
- magic-string: don't report a change when edits cancel out (#10299) by @IWANABETHATGUY
- sourcemap: map wrapped imported callees (#10288) by @hyfdev
- magic-string: count positional inserts at index 0 on an empty source (#10306) by @IWANABETHATGUY
- magic-string: return UTF-16 code units from length() (#10295) by @IWANABETHATGUY
- output: skip separator for empty import prelude (#10289) by @hyfdev

### 🚜 Refactor

- dev: make it easier to customize the runtime (#10338) by @sapphi-red
- code-splitting: declare CJS carrier namespaces initializer-free (#10513) by @hyfdev
- rollup-tests: avoid relying on `NODE_PATH` env var resolution (#10496) by @sapphi-red
- code-splitting: derive symbol chunk ownership as pass-local link data (#10449) by @hyfdev
- plugin: share asset emission helpers between copy_module and asset_module (#10450) by @Nic-Polumeyv
- plugin: dedupe hook binding boilerplate (#10428) by @Nic-Polumeyv
- plugin: share the oxc parse preamble between import-glob and dynamic-import-vars (#10452) by @Nic-Polumeyv
- implement `GetAstBuilder` on visitor/pass types (#10424) by @overlookmotel
- pass arrays to AST builder methods (#10419) by @overlookmotel
- shorten AST builder code (#10418) by @overlookmotel
- centralize final ESM init metadata (#10376) by @hyfdev
- descriptor-based parallel-plugin detection (getParallelPluginInfo) (#10349) by @Brooooooklyn
- remove AstFactory in favor of new_* construction traits (#10353) by @Boshen
- enable oxc_ast's `disable_old_builder` feature (#10316) by @Boshen

### 📚 Documentation

- development-guide: update config.json link line reference (#10523) by @dogledogle
- clarify slash normalization for id hook filter (#10511) by @sapphi-red
- code-splitting: record the thenable-namespace rule (#10502) by @hyfdev
- clarify that `esmExternalRequirePlugin` must own its externals (#10439) by @TheAlexLichter
- add troubleshooting entry for the @rolldown/binding-... resolution error (#10390) by @Nic-Polumeyv
- add Code Splitting API reference category (#10382) by @vittorioexp

### ⚡ Performance

- use VisitJsMut in JavaScript-only AST passes (#10507) by @Boshen
- cache the resolved glob matcher for Id/ImporterId filters (#10410) by @IWANABETHATGUY
- scope_hoisting: remove `alloc` field from `ScopeHoistingFinalizer` (#10425) by @overlookmotel
- reduce string allocations (#10423) by @overlookmotel
- hmr: remove unnecessary string allocations (#10422) by @overlookmotel
- avoid allocating static strings via custom builder methods (#10421) by @overlookmotel
- pass string literals to AST builder methods (#10420) by @overlookmotel
- use VisitJs in JavaScript-only AST passes (#10396) by @Boshen
- plugin: shrink erased plugin debug vtables (#10370) by @Boshen
- reuse normalized path buffers (#10315) by @hyfdev

### 🧪 Testing

- code-splitting: pin CJS barrel fallback triggers and flag-off equivalence (#10514) by @hyfdev
- plugin: cover chunk fileName, absolute chunk name, and Windows drive names (#10400) by @IWANABETHATGUY
- code-splitting: cover a single-chunk dynamic import of a wrapped module (#10505) by @hyfdev
- file: remove the unused .dynamic_import fixture (#10481) by @hyfdev
- treeshake: reduce manual-pure fixture to a minimal smoke test, move matrix to unit tests (#10436) by @IWANABETHATGUY
- dev: run vite playgrounds under bundled dev (test-serve-bundled) (#10434) by @h-a-n-a
- stop snapshots from silently hiding user code inside the runtime region (#10431) by @hyfdev
- wasi: add tokio runtime lifecycle regression test (#10379) by @shulaoda
- dev: expect preserved hot.data in hmr-whole-chain-dispose (#10380) by @h-a-n-a
- code-splitting: pin flag-off wrapped-esm init emission (#10324) by @hyfdev
- sourcemap: fix Windows-only failures in composition fixtures (#10368) by @shulaoda
- generated-code: mark assert external in symbols_ns2 for deterministic output (#10339) by @hyfdev
- code-splitting: cover entries-aware strict init cycle (#10307) by @hyfdev
- make `just setup-vite` the only entry point that touches `vite/` (#10332) by @shulaoda
- vite-tests: reuse the shared root vite checkout (#10325) by @shulaoda
- test-dev-server: drop the vite submodule, track rolldown-canary (#10319) by @shulaoda
- vite-tests: track the latest rolldown-canary rebased onto vite main (#10318) by @shulaoda
- unify Vite in vite-test and test-dev-server (#10293) by @h-a-n-a

### ⚙️ Miscellaneous Tasks

- scope the binding artifact download to `bindings-*` (#10525) by @shulaoda
- deps: update napi (#10506) by @renovate[bot]
- deps: update rollup submodule for tests to v4.62.3 (#10494) by @rolldown-guard[bot]
- deps: upgrade oxc to 0.142.0 (#10497) by @shulaoda
- deps: update test262 submodule for tests (#10495) by @rolldown-guard[bot]
- deps: update github actions (#10460) by @renovate[bot]
- deps: update rust crates (#10462) by @renovate[bot]
- deps: update npm packages (#10461) by @renovate[bot]
- metric: alert Discord when the metric workflow fails (#10447) by @IWANABETHATGUY
- metric: mint a short-lived GitHub App token instead of a PAT (#10446) by @IWANABETHATGUY
- repo: repair dangling CLAUDE.md symlink (#10451) by @hanayashiki
- publint/package-metadata fixes and small correctness fixes (#10344) by @Brooooooklyn
- deps: update dependency vite-plus to v0.2.6 (#10404) by @renovate[bot]
- add Semgrep scan workflow (#10395) by @Boshen
- enable Windows CI with a PR label (#10375) by @hyfdev
- deps: upgrade oxc to 0.141.0 (#10373) by @camc314
- deps: update napi (#10369) by @renovate[bot]
- deps: update test262 submodule for tests (#10367) by @rolldown-guard[bot]
- deps: update taiki-e/install-action action to v2.83.3 (#10358) by @renovate[bot]
- deps: update rust crates (#10357) by @renovate[bot]
- deps: update npm packages (#10359) by @renovate[bot]
- deps: update rust crate syn to v3 (#10362) by @renovate[bot]
- deps: update rust crate oxc_sourcemap to v8.1.2 (#10356) by @renovate[bot]
- deps: update dependency vite-plus to v0.2.5 (#10329) by @renovate[bot]
- docs: migrate Netlify redirects to Void config (#10282) by @tux-tn
- deps: update dependency rust to v1.97.1 (#10317) by @renovate[bot]
- runtime: remove unused `runtime/index.js` (#10302) by @IWANABETHATGUY

### ❤️ New Contributors

* @dogledogle made their first contribution in [#10523](#10523)
* @tbvjaos510 made their first contribution in [#10489](#10489)
* @martijnwalraven made their first contribution in [#10440](#10440)
* @shantanuraj made their first contribution in [#10438](#10438)
* @Nic-Polumeyv made their first contribution in [#10450](#10450)
* @hanayashiki made their first contribution in [#10451](#10451)
* @unknownjedi made their first contribution in [#10426](#10426)
* @vittorioexp made their first contribution in [#10382](#10382)
* @tux-tn made their first contribution in [#10282](#10282)

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants