- Notifications
You must be signed in to change notification settings - Fork622
feat(rolldown)!: update tooxc@0.70.0
to refine printing comments#4562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
netlifybot commentedMay 15, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview forrolldown-rs canceled.
|
socket-securitybot commentedMay 15, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Review the following changes in direct dependencies. Learn more aboutSocket for GitHub.
|
github-actionsbot commentedMay 15, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Benchmarks Rust
|
oxc@0.70.0
to rework of printing commentsoxc@0.70.0
to rework of printing commentsoxc@0.70.0
to refine printing commentsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Pull Request Overview
This PR upgrades the bundled Oxc version to 0.70.0 and adjusts how comments are emitted—normal comments are stripped, annotation comments are kept, and thelegalComments
option now drives legal comment emission. Snapshots and inline test diffs are updated to reflect the new single-line, comment-stripped output.
- Bump
oxc
,oxc_parser_napi
, andoxc_transform_napi
to 0.70.0 - Change default
legal_comments
fromPreserve
toInline
- Switch
CodegenOptions
logic to use the new minifier API - Regenerate and collapse test snapshots to match ESBuild-style printing
Reviewed Changes
Copilot reviewed 65 out of 65 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
Cargo.toml | Bumped oxc crates to 0.70.0 and updated resolver note |
crates/rolldown/src/utils/normalize_options.rs | Changed defaultlegal_comments toInline |
crates/rolldown/src/stages/generate_stage/minify_assets.rs | UpdatedCodegenOptions branches for whitespace removal |
crates/rolldown/tests///.md & **/.snap | Regenerated diffs and snapshots to collapse comments |
Comments suppressed due to low confidence (2)
Cargo.toml:198
- After bumping these dependencies, please verify that the README or migration guide is updated to reference any new or updated API surface in Oxc 0.70.0.
oxc = { version = "0.70.0", features = [... ] }
crates/rolldown/tests/esbuild/default/define_this/diff.md:38
- [nitpick] These collapsed one-line snapshots are harder to diff by eye; consider structuring the snapshots to preserve minimal line breaks or comments for readability.
ok(1, 2, 3, 2 .baz, 1 .bar);
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
1c583fe
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Description
This PR align rolldown's printing commens with esbuild:
OutputOptions#legalComments