Skip to content

chore(deps): upgrade oxc to 0.152.0 - #11018

Merged
shulaoda merged 7 commits into
rolldown:mainfrom
camc314:codex/oxc-main
Sep 30, 2026
Merged

shulaoda merged 7 commits into
rolldown:mainfrom
camc314:codex/oxc-main

Conversation

@camc314

@camc314 camc314 commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Upgrade Oxc Rust dependencies to the published 0.152.0 crates.
  • Upgrade @oxc-project/runtime, @oxc-project/types, oxc-parser, and oxc-transform JavaScript packages to 0.152.0.

Root causes

oxc-project/oxc#26953

oxc-project/oxc#26953

Oxc now treats a lone surrogate in a module export name as a fatal parse error. Rolldown's test262 module-code snapshot accordingly retains the one expected early error and removes two duplicate parse diagnostics plus a downstream duplicate-export diagnostic that depended on recovery after the fatal error.

Commit: 01ff33e9c834a04eda027a9f5716a3dbf0f389b9

oxc-project/oxc#22933

oxc-project/oxc#22933

Oxc distinguishes HTML opening and closing comments in CommentKind. Rolldown handles the new variants as line comments when generating sourcemap references, preserving the existing // reference form. No snapshot changes were needed.

Commit: 51863287632df2ab85cafc16c9d66015c5d5a754

oxc-project/oxc#27078

oxc-project/oxc#27078

Oxc moved to oxc_sourcemap 9, so Rolldown must use the same version to avoid incompatible SourceMap types. Source maps now serialize the standard ignoreList field; Rolldown still accepts legacy x_google_ignoreList input and preserves the plugin/MagicString compatibility surface. The native and WASI binding declarations were regenerated for v9's NAPI sourcemap type and field changes. The allocation snapshot did not change.

Commit: efc646a59041b183bb8b13c728bc824f07f33b85

Closes #11004

@camc314
camc314 marked this pull request as ready for review September 29, 2026 09:02
@codspeed

codspeed Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 0.51%

⚡ 1 improved benchmark
❌ 1 regressed benchmark
✅ 5 untouched benchmarks
⏩ 10 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ join_with_sourcemap 18 ms 19.1 ms -5.52%
⚡ collapse_codegen_chain 31.6 ms 30.2 ms +4.77%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing camc314:codex/oxc-main (245ffc7) with main (b082026)

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

Oxc-Tracking-Commit: true

Oxc-Revision: fc37ba07d360c93e5f228fd00de0b0b2842429f5
oxc-project/oxc#26953

Oxc now treats module export names containing a Unicode lone surrogate as a fatal parse error. Parsing stops after the first diagnostic instead of returning a recovered AST that triggers additional semantic errors.

The test262 module-code snapshot removes two repeated lone-surrogate diagnostics and the downstream duplicate-export diagnostic for early-export-ill-formed-string.js. The remaining single parse error is the expected ECMAScript early error.

First-Bad-Oxc-Commit: 01ff33e9c834a04eda027a9f5716a3dbf0f389b9

Oxc-Revision: 01ff33e9c834a04eda027a9f5716a3dbf0f389b9
oxc-project/oxc#22933

Oxc now distinguishes HTML opening and closing comments in CommentKind so their full markers can be stripped while preserving comment ranges.

Treat both new variants as line comments when Rolldown emits sourcemap references. This preserves the existing // reference form and makes the exhaustive match compatible with the expanded Oxc API.

First-Bad-Oxc-Commit: 51863287632df2ab85cafc16c9d66015c5d5a754

Oxc-Revision: 51863287632df2ab85cafc16c9d66015c5d5a754
oxc-project/oxc#27078

Oxc now depends on oxc_sourcemap 9. Keeping Rolldown on v8 produces distinct SourceMap types, and the former Google-only ignore-list setters and fields no longer compile.

Upgrade Rolldown’s independent oxc_sourcemap dependency to v9 at the first bad Oxc revision. Use the standard ignoreList field for generated maps and accept both the standard field and the legacy x_google_ignoreList input. Preserve the legacy JS plugin alias and MagicString compatibility while the serialized map uses the standard field.

Regenerate the native and WASI binding declarations through their build recipes: v9 exposes JSONSourceMap and renames its NAPI source-map field. The source-map fixture now checks standard ignoreList output, and the plugin fixture checks that legacy writes also update the standard field. just allocs produced no snapshot change.

First-Bad-Oxc-Commit: efc646a59041b183bb8b13c728bc824f07f33b85

Oxc-Revision: efc646a59041b183bb8b13c728bc824f07f33b85
The npm upgrade changed @oxc-project/runtime to 0.152.0, but the checked-in embedded helper registry still advertised the 0.151.0 virtual prefix. Regenerate it with just update-generated-code so CI and runtime helper resolution use the installed release. Helper source bodies are unchanged; only the version annotation and prefix move.
@camc314

camc314 commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

Merging this PR will degrade performance by 0.11%

I assume this comes from the oxc_sourcemap change - probably worth investigating.

@shulaoda
shulaoda merged commit 02d65a6 into rolldown:main Sep 30, 2026
32 checks passed
@rolldown-guard rolldown-guard Bot mentioned this pull request Sep 30, 2026
shulaoda added a commit that referenced this pull request Sep 30, 2026
## [1.2.12] - 2026-09-30

### 🚀 Features

- inline common chunks containing import() and deduplicate shared code in lazy chunks (#11034) by @hyfdev
- experimental `inlineCommonChunks` support (#10899) by @hyfdev
- dev: ship imported bindings for HMR partial accept (#10856) by @h-a-n-a

### 🐛 Bug Fixes

- chunking: re-derive chunk exec orders after the runtime leaves its host chunk (#11005) by @hyfdev
- code-splitting: gate member-read init paths on the reading statement (#11039) by @hyfdev
- code-splitting: retain initialization paths through re-exported namespaces (#11037) by @hyfdev
- dev: reject non-ESM output formats in dev mode (#11038) by @h-a-n-a
- dev: align `import.meta.hot.accept` deps with Vite (#10997) by @h-a-n-a
- dev: clear the resolver cache when a file is created or deleted (#10986) by @waltuov
- error: name the resolved specifier in unresolved import diagnostics (#11014) by @linyiru
- make entries-aware chunk merging deterministic (#11002) by @hyfdev
- watch: avoid restarting macOS watcher for unchanged paths (#10992) by @sep2

### 🚜 Refactor

- dev: ship the dev runtime entry as one file (#10998) by @h-a-n-a
- binding: remove `__internalForcePanic` (#10989) by @IWANABETHATGUY

### 📚 Documentation

- fix cloudflare preview builds (#10996) by @sapphi-red
- fix build config loader warning (#10994) by @sapphi-red
- deps: use Vite 8 (#10993) by @sapphi-red

### ⚡ Performance

- dev: only ship rows with dynamic edges in registerGraph (#11019) by @h-a-n-a

### 🧪 Testing

- code-splitting: cover more re-exported namespace shapes (#11042) by @hyfdev
- webcontainer: cover the WebContainer download fallback in plain Node (#10966) by @shulaoda
- dev: pin the runtime entry file layout that Vite serves (#10983) by @h-a-n-a

### ⚙️ Miscellaneous Tasks

- pin VOID_API_URL for the docs deploy (#11041) by @shulaoda
- opt into the WebContainer smoke test for napi bumps and loader changes (#10967) by @shulaoda
- deps: upgrade oxc to 0.152.0 (#11018) by @camc314
- deps: update rust crates (#11012) by @renovate[bot]
- deps: update npm packages (#11011) by @renovate[bot]
- deps: update crate-ci/typos action to v1.50.3 (#11023) by @renovate[bot]
- deps: update test262 submodule for tests (#11022) by @rolldown-guard[bot]
- deps: update rollup submodule for tests to v4.63.5 (#11021) by @rolldown-guard[bot]
- deps: update dependency vite-plus to v1 (#11017) by @renovate[bot]
- deps: update github actions (#11010) by @renovate[bot]
- remove `CLAUDE.md` (#10925) by @iiio2
- verify release debug info by matching file IDs (#10988) by @IWANABETHATGUY
- deps: update rollup submodule for tests to v4.63.4 (#10940) by @rolldown-guard[bot]

### ❤️ New Contributors

* @waltuov made their first contribution in [#10986](#10986)
* @linyiru made their first contribution in [#11014](#11014)
* @sep2 made their first contribution in [#10992](#10992)

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