Skip to content

feat(cli): align object type with rollup#8598

Merged
graphite-app[bot] merged 1 commit intomainfrom
03-09-feat_cli_align_object_type_with_rollup
Mar 9, 2026
Merged

feat(cli): align object type with rollup#8598
graphite-app[bot] merged 1 commit intomainfrom
03-09-feat_cli_align_object_type_with_rollup

Conversation

@h-a-n-a
Copy link
Member

@h-a-n-a h-a-n-a commented Mar 9, 2026

This PR adds usage for key:value for object types to align with rollup's object-like type syntax.
It also keeps key=value with a warning message for the backward compability.

closes #8593

Copy link
Member Author

h-a-n-a commented Mar 9, 2026


How to use the Graphite Merge Queue

Add the label graphite: merge-when-ready to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@netlify
Copy link

netlify bot commented Mar 9, 2026

Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit 6519694
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/69aea7cbf59d100008be8c2c

@h-a-n-a h-a-n-a force-pushed the 03-09-feat_cli_align_object_type_with_rollup branch from afaaa02 to c14714a Compare March 9, 2026 10:25
@h-a-n-a h-a-n-a marked this pull request as ready for review March 9, 2026 10:26
Copilot AI review requested due to automatic review settings March 9, 2026 10:26
@h-a-n-a h-a-n-a requested a review from sapphi-red March 9, 2026 10:27
Copy link
Contributor

Copilot AI left a 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 updates rolldown’s CLI “object-like” option parsing to accept Rollup-compatible key:value syntax, while keeping the legacy key=value form with a deprecation warning.

Changes:

  • Switch object-option parsing to prefer key:value (Rollup-style) and emit a warning when key=value is used.
  • Update CLI e2e tests and snapshots to use key:value and verify the deprecation warning path.
  • Refresh help/descriptions and docs to describe key:value syntax.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/rolldown/src/cli/arguments/index.ts Updates object-option parsing to support : with fallback to deprecated = plus warning.
packages/rolldown/src/utils/validator.ts Updates option descriptions for globals and transform.define to document key:value syntax.
packages/rolldown/tests/cli/cli-e2e.test.ts Updates CLI tests to use key:value and adds a deprecated key=value warning test.
packages/rolldown/tests/cli/snapshots/cli-e2e.test.ts.snap Updates snapshots for help output and new warning test output.
meta/design/cli.md / docs/apis/cli.md Updates documentation to reflect key:value object syntax.

@h-a-n-a h-a-n-a force-pushed the 03-09-feat_cli_align_object_type_with_rollup branch from c14714a to 030ffbd Compare March 9, 2026 10:32
Copy link
Member Author

h-a-n-a commented Mar 9, 2026

Merge activity

  • Mar 9, 10:34 AM 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.
  • Mar 9, 10:57 AM UTC: h-a-n-a added this pull request to the Graphite merge queue.
  • Mar 9, 11:05 AM UTC: Merged by the Graphite merge queue.

This PR adds usage for `key:value` for object types to align with rollup's object-like type syntax.
It also keeps `key=value` with a warning message for the backward compability.

closes #8593
@graphite-app graphite-app bot force-pushed the 03-09-feat_cli_align_object_type_with_rollup branch from 030ffbd to 6519694 Compare March 9, 2026 10:58
@graphite-app graphite-app bot merged commit 6519694 into main Mar 9, 2026
32 checks passed
@graphite-app graphite-app bot deleted the 03-09-feat_cli_align_object_type_with_rollup branch March 9, 2026 11:05
This was referenced Mar 11, 2026
shulaoda added a commit that referenced this pull request Mar 11, 2026
## [1.0.0-rc.9] - 2026-03-11

### 💥 BREAKING CHANGES

- rename exported BindingMagicString to RolldownMagicString (#8626) by @IWANABETHATGUY

### 🚀 Features

- rolldown: add isRolldownMagicString property for reliable native detection (#8614) by @IWANABETHATGUY
- cli: align object type with rollup (#8598) by @h-a-n-a

### 🐛 Bug Fixes

- rust: circular inter-chunk imports when external dynamic imports exist (#8596) by @Dunqing
- update minify default docs from `false` to `'dce-only'` (#8620) by @shulaoda

### 💼 Other

- fix early exit in script build-node (#8617) by @h-a-n-a

### 🚜 Refactor

- binding: remove outdated TODO comment in MagicString to_string() (#8613) by @IWANABETHATGUY

### 📚 Documentation

- add viteplus alpha announcement banner (#8615) by @mdong1909
- update VitePress theme to 4.8.2 for narrow-screen layout regression (#8612) by @Copilot

### ⚡ Performance

- merge 4 integration test binaries into 1 (#8610) by @Boshen

### 🧪 Testing

- replace heavy filename_with_hash test with targeted hash fixtures (#8597) by @Boshen

### ⚙️ Miscellaneous Tasks

- ci: remove redundant `--no-run` build step from cargo-test (#8623) by @Boshen
- rust: use `cargo-shear` to toggle Cargo.toml [lib] test = bool (#8622) by @Boshen
- deps: update test262 submodule for tests (#8611) by @sapphi-red
- skip macOS CI jobs on pull requests (#8608) by @Copilot
- add rust cache to repo validation job (#8607) by @Boshen
- skip running empty bin test targets (#8605) by @Boshen
- skip building examples in cargo-test to reduce build time (#8603) by @Boshen
- switch plain workflow checkouts to taiki-e action (#8601) by @Boshen
- skip Windows CI jobs on PRs (#8600) by @Boshen
- remove unused asset module (#8594) by @shulaoda

### ◀️ Revert

- "docs: add viteplus alpha announcement banner (#8615)" (#8616) by @shulaoda

Co-authored-by: shulaoda <165626830+shulaoda@users.noreply.github.com>
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.

Aligning CLI arguments with rollup

3 participants