Skip to content

Comments

feat(rolldown): oxc v0.82.1#5717

Merged
Boshen merged 1 commit intomainfrom
next-oxc
Aug 13, 2025
Merged

feat(rolldown): oxc v0.82.1#5717
Boshen merged 1 commit intomainfrom
next-oxc

Conversation

@Boshen
Copy link
Member

@Boshen Boshen commented Aug 13, 2025

Changelog: oxc-project/oxc#13049

DCE phase now runs in a loop, resulting output that aligns to Rollup's behavior, with a small sacrifice in performance.

@netlify
Copy link

netlify bot commented Aug 13, 2025

Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit 9f7d840
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/689c17b12287170008aff0c7
😎 Deploy Preview https://deploy-preview-5717--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​oxc-project/​types@​0.80.0 ⏵ 0.82.110010070 +196 +1100
Updated@​oxc-project/​runtime@​0.80.0 ⏵ 0.82.110010073 +196 +1100
Updatedoxc-transform@​0.81.0 ⏵ 0.82.198 +110088 +196 +1100
Updatedoxc-parser@​0.81.0 ⏵ 0.82.19810010096 +1100

View full report

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 13, 2025

CodSpeed Performance Report

Merging #5717 will degrade performances by 8.46%

Comparing next-oxc (9f7d840) with main (c09bd00)1

Summary

❌ 7 regressions
✅ 1 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
bundle@multi-duplicated-top-level-symbol 266.5 ms 275.2 ms -3.15%
bundle@rome_ts 498.2 ms 517.6 ms -3.74%
bundle@rome_ts-sourcemap 596.5 ms 618.3 ms -3.52%
bundle@threejs 211.6 ms 224.2 ms -5.58%
bundle@threejs-sourcemap 255.7 ms 266.3 ms -3.97%
scan@rome_ts 400.2 ms 423.1 ms -5.42%
scan@threejs 164.5 ms 179.7 ms -8.46%

Footnotes

  1. No successful run was found on main (783fe01) during the generation of this report, so c09bd00 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@github-actions
Copy link
Contributor

Benchmarks Rust

group                                                        pr                                     target
-----                                                        --                                     ------
bundle/bundle@multi-duplicated-top-level-symbol              1.00     84.9±2.95ms        ? ?/sec    1.03     87.8±3.42ms        ? ?/sec
bundle/bundle@multi-duplicated-top-level-symbol-sourcemap    1.00     96.6±3.33ms        ? ?/sec    1.01     97.7±5.42ms        ? ?/sec
bundle/bundle@rome_ts                                        1.04    124.0±3.21ms        ? ?/sec    1.00    119.7±2.58ms        ? ?/sec
bundle/bundle@rome_ts-sourcemap                              1.01    145.5±2.72ms        ? ?/sec    1.00    143.6±2.98ms        ? ?/sec
bundle/bundle@threejs                                        1.08     48.1±2.44ms        ? ?/sec    1.00     44.5±1.26ms        ? ?/sec
bundle/bundle@threejs-sourcemap                              1.05     56.6±1.82ms        ? ?/sec    1.00     53.8±1.37ms        ? ?/sec
bundle/bundle@threejs10x                                     1.04    482.6±7.29ms        ? ?/sec    1.00    461.9±7.54ms        ? ?/sec
bundle/bundle@threejs10x-sourcemap                           1.05    567.5±6.23ms        ? ?/sec    1.00    542.9±6.54ms        ? ?/sec
scan/scan@rome_ts                                            1.04     99.2±1.99ms        ? ?/sec    1.00     95.1±1.89ms        ? ?/sec
scan/scan@threejs                                            1.05     34.6±2.05ms        ? ?/sec    1.00     32.8±1.41ms        ? ?/sec
scan/scan@threejs10x                                         1.06    361.1±4.90ms        ? ?/sec    1.00    339.7±4.83ms        ? ?/sec

shulaoda
shulaoda previously approved these changes Aug 13, 2025
@shulaoda shulaoda self-requested a review August 13, 2025 06:17
@shulaoda shulaoda dismissed their stale review August 13, 2025 06:18

mistake

@shulaoda shulaoda requested review from IWANABETHATGUY and removed request for shulaoda August 13, 2025 06:23
@Brooooooklyn
Copy link
Member

cursor review

@IWANABETHATGUY
Copy link
Member

The regression in the scan phase seems not expected, should iterate only once during scan phase.

@Boshen
Copy link
Member Author

Boshen commented Aug 13, 2025

The regression in the scan phase seems not expected, should iterate only once during scan phase.

There's no way to remove dead code cleanly without at least running twice, unless we build a sophisticated algorithm for it, for example https://github.com/google/closure-compiler/blob/67caecbf83855cfd9c56facdcd355640084c87de/src/com/google/javascript/jscomp/RemoveUnusedCode.java#L50

@Boshen Boshen self-assigned this Aug 13, 2025
@Boshen Boshen added this pull request to the merge queue Aug 13, 2025
Merged via the queue into main with commit c295619 Aug 13, 2025
29 checks passed
@Boshen Boshen deleted the next-oxc branch August 13, 2025 08:57
This was referenced Aug 18, 2025
hyf0 pushed a commit that referenced this pull request Aug 18, 2025
## [1.0.0-beta.33] - 2025-08-18

### 💥 BREAKING CHANGES

- only call `closeBundle` hook when bundling actually happens (#5715) by
@shulaoda

### 🚀 Features

- rolldown_plugin_vite_css_post: align transform logic except minify
(#5768) by @shulaoda
- rolldown_plugin_vite_css_post: align html inline css logic (#5767) by
@shulaoda
- support merge cjs ns in module group level (#5760) by @IWANABETHATGUY
- rolldown_plugin_vite_css_post: filter transform id (#5766) by
@shulaoda
- rolldown: oxc v0.82.2 (#5754) by @Boshen
- rollup-test: log error when `pringStatus` (#5744) by @situ2001
- rolldown_plugin_vite_css_post: initialize (#5743) by @shulaoda
- rolldown_plugin_vite_css: align `transform` hook logic (#5736) by
@shulaoda
- rolldown_plugin_vite_css: align partial transform hook logic (#5733)
by @shulaoda
- add original wrap_kind (#5729) by @IWANABETHATGUY
- concatenateWrappedModule (#5724) by @IWANABETHATGUY
- rolldown: oxc v0.82.1 (#5717) by @Boshen
- improve error message for `unresolved_import` when platform is
`neutral` (#5700) by @IWANABETHATGUY

### 🐛 Bug Fixes

- rolldown_plugin_transform: merge tsconfig jsx options even when
`oxc.jsx.runtime` is set (#5771) by @hi-ogawa
- jsx preserve break component which is default export (#5764) by
@shulaoda
- rolldown_plugin_asset: should directly stringify raw content (#5749)
by @situ2001
- resolve symbol deconfliction order for cross-chunk imports by
@IWANABETHATGUY
- rolldown_error: improve resolve diagnostic message (#5740) by
@shulaoda
- vitest ci failed (#5741) by @IWANABETHATGUY
- rolldown: options `context` should be available in renderStart (#5672)
by @situ2001
- ensure lazy module eval order when import variable from other chunk
(#5727) by @IWANABETHATGUY
- wasm build panic on stackblitz (#5723) by @shulaoda
- plugin/vite-resolve: try non-prefixed id before prefixed id (#5711) by
@sapphi-red
- devtool: shouldn't filter out spans for devtool use case (#5713) by
@hyf0
- plugin/vite-resolve: fallback on more resolution errors that happened
when trying with prefix (#5710) by @sapphi-red
- plugin/vite-resolve: don't consider ids with `npm:` prefix as a
built-in module (#5709) by @sapphi-red

### 🚜 Refactor

- rolldown_plugin_json: use common plugin utils (#5769) by @shulaoda
- hmr: remove unnecessary code of handling runtime module (#5752) by
@hyf0
- hmr: enhance HMR update logic and improve clarity (#5748) by @hyf0
- improve `ScopeHoistingFinalizerContext` (#5739) by @shulaoda
- move `finalize_normal_module` into `ScopeHoistingFinalizerContext`
(#5738) by @shulaoda
- private fields `wrap_kind` and `original_wrap_kind` and keep them sync
(#5730) by @IWANABETHATGUY

### 📚 Documentation

- rolldown_plugin_data_uri: update README (#5746) by @situ2001
- install guide for minor platforms (#5716) by @sapphi-red
- update description for platform `neutral` (#5701) by @IWANABETHATGUY

### ⚡ Performance

- hmr: only refetch changed modules (#5753) by @hyf0
- rolldown_plugin_reporter: gzip size computation (#5734) by
@IWANABETHATGUY
- hmr: reuse previous ast for non-changed modules (#5725) by @hyf0
- rolldown_ecmascript: do not run semantic twice for `dce-only` (#5707)
by @Boshen

### 🧪 Testing

- rolldown: should await for `toMatchFileSnapshot` (#5759) by @situ2001
- hmr: improve test of `import.meta.hot.invalidate` (#5747) by @hyf0

### ⚙️ Miscellaneous Tasks

- deps: lock file maintenance (#5765) by @renovate[bot]
- deps: lock file maintenance rust crates (#5763) by @renovate[bot]
- deps: lock file maintenance npm packages (#5762) by @renovate[bot]
- deps: update github-actions (#5755) by @renovate[bot]
- deps: update dependency tinybench to v5 (#5756) by @renovate[bot]
- deps: update github-actions (major) (#5757) by @renovate[bot]
- deps: update crate-ci/typos action to v1.35.4 (#5714) by
@renovate[bot]
- prepare-release: regenerate `binding.js` after version bump (#5704) by
@shulaoda
- deps: update dependency tsdown to v0.14.1 (#5705) by @renovate[bot]
- rollup-tests: skip occasionally failing test case (#5703) by @shulaoda
- update binding.js (#5702) by @shulaoda

Co-authored-by: sapphi-red <[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.

5 participants