---
name: "rolldown-rust-rollup-bundler"
description: "Bundle production applications using the official Rust-based successor to Rollup."
metadata:
  author: "Rolldown Team"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "bundle with rolldown"
  - "rolldown config file"
  - "rust rollup alternative"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Rolldown Fast Rust-Based Rollup-Compatible Bundler

Configures Rolldown (developed by the Vite team): Rollup-compatible plugin and configuration API, high-performance module concatenation, treeshaking, and preparing for future Vite unified bundling.

## When to Invoke
Invoke this skill whenever you need to:
- bundle with rolldown
- rolldown config file
- rust rollup alternative

## Execution SOP & Rules
1. Install package: pnpm add -D rolldown.
2. Create rolldown.config.js: export default { input: 'src/index.ts', output: { dir: 'dist' } }.
3. Execute build: npx rolldown -c.
4. Observe multi-threaded compilation speed and inspect output bundle size.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
