Skip to content

chore(deps): upgrade oxc to 0.141.0#10373

Merged
shulaoda merged 3 commits into
rolldown:mainfrom
camc314:c/oxc-0.141.0
Jul 22, 2026
Merged

chore(deps): upgrade oxc to 0.141.0#10373
shulaoda merged 3 commits into
rolldown:mainfrom
camc314:c/oxc-0.141.0

Conversation

@camc314

@camc314 camc314 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Breaking changes:

fixes #10279 — RegExp feature-detection probes are no longer dropped: oxc's side-effect analysis is now target-aware, and rolldown stays conservative when no transform.target is set (verified against the issue's repro in both dce-only and full-minify modes)
fixes #9272 — unreachable mutually-recursive functions are now removed by chunk-level DCE (oxc-project/oxc#24125); verified the issue's repro now produces its expected output

@camc314

camc314 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@camc314
camc314 marked this pull request as ready for review July 21, 2026 21:41
@camc314
camc314 requested a review from sapphi-red as a code owner July 21, 2026 21:41
Copilot AI review requested due to automatic review settings July 21, 2026 21:41

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.

@codspeed-hq

codspeed-hq Bot commented Jul 21, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 7 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing camc314:c/oxc-0.141.0 (bfe78a2) with main (ce804c6)

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.

@Dunqing

Dunqing commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@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: aa9c7691a1

ℹ️ 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".

Comment thread crates/rolldown/src/ast_scanner/stmt_eval_analyzer/mod.rs
Comment thread crates/rolldown/tests/rolldown/issues/6513/artifacts.snap
…rget

Normalizing an omitted `transform.target` to `esnext` made the RegExp
constructor throw-analysis assume every runtime feature is supported,
so feature-detection probes like
`try { new RegExp('\p{Ll}', 'u') } catch { loadPolyfill() }` became
droppable and could break on engines without the feature — the exact
pattern oxc's target-aware analysis exists to protect
(oxc-project/oxc#18050).

Keep the omitted case as an empty `EngineTargets` instead: oxc treats
`is_any_target()` as "assume no runtime feature support", which is
behaviorally identical to providing no targets, so no separate
explicitness flag is needed. An explicit `transform.target` still opts
into feature-aware analysis through `StmtEvalAnalyzer::engine_targets`.
@sapphi-red sapphi-red linked an issue Jul 22, 2026 that may be closed by this pull request
@shulaoda
shulaoda merged commit aa73a68 into rolldown:main Jul 22, 2026
52 of 54 checks passed
Brooooooklyn added a commit that referenced this pull request Jul 22, 2026
The oxc-0.141 merge auto-merged pnpm-workspace.yaml's catalog bumps
(@oxc-project/runtime, @oxc-project/types, oxc-parser, oxc-transform:
0.140.0 -> 0.141.0, from #10373) but pnpm-lock.yaml was resolved to the
branch side (--ours), leaving its catalog snapshot at 0.140.0. That
mismatch failed `vp install` in CI with ERR_PNPM_LOCKFILE_CONFIG_MISMATCH
before any build ran (all 10 red jobs shared this one cause).

Regenerated with `pnpm install --lockfile-only` (pnpm 11.9.0, matches
CI). Diff is symmetric 192/192, exclusively oxc 0.140.0 -> 0.141.0
(catalog + platform bindings + integrity); emnapi-v2 override, the two
@napi-rs patchedDependencies, and the napi-async-runtime alpha pins are
untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01T34fMrYCf2V13Mg8BKmnda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

6 participants