Rollup
$ rollup Community Low RiskStandard ES-module bundler favored for JavaScript/TypeScript libraries and powering Vite's production builds. Supports --silent, --failAfterWarnings, and stdout output when -o/-d are omitted, though errors are plain text and --watch runs persistently.
npm install -g rollup Local library and ESM bundler executed directly in JavaScript/TypeScript repositories.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Clean non-interactive builds with --silent, --failAfterWarnings, and stdout output, though it lacks --json diagnostics.
- Supports
--failAfterWarningsand--silent - Omitting
-o/-dprints bundle to stdout
Local bundling only with explicit output destinations, though rollup.config.* executes arbitrary JS plugin code.
- No network/auth side effects during bundling
Standard npm package across macOS, Linux, and Windows on Node.js.
- Cross-platform npm package with native Rust/Wasm parser
Premier ESM library bundler with clean tree-shaking, though plugin chains are often needed for TS/CommonJS.
- Produces minimal, readable library bundles
Mature, actively maintained MIT project (rollup/rollup).
- Official
rollup/rolluprepository
Well-documented CLI flag reference at rollupjs.org.
- Official CLI docs at rollupjs.org/command-line-interface
Security, Auth & Guardrails
No authentication required; reads local rollup.config.* and source files.
MIT open-source CLI; completely free.
# Rollup (rollup) Agent Rules - Pass `--failAfterWarnings` and `--silent` on verification builds to catch unresolved imports or circular deps. - Avoid `-w` (`--watch`) in synchronous agent commands.
Agent-Ready Command Recipes
Safe Read-Only Queries
rollup src/index.js --format esm --silent
Bundles src/index.js as ESM to stdout so the agent can inspect tree-shaken output.
Controlled Writes & Previews
rollup -c rollup.config.mjs --failAfterWarnings --silent
Runs the project's Rollup build and exits non-zero if any bundle warnings occur.
Strengths for Agents
- +
--failAfterWarningscatches subtle bundle warnings cleanly in automated checks. - + Omitting
-o/-demits the tree-shaken bundle to stdout without touching disk.
Caveats & Pitfalls
- ! No
--jsonstats/diagnostic output flag built into the CLI. - ! Passing
-w/--watchstarts a persistent file watcher that blocks synchronous shells.