rollup
Installation
SKILL.md
When to use this skill
Use this skill whenever the user wants to:
- Bundle JavaScript libraries with tree shaking and multi-format output (ESM/CJS/UMD)
- Configure Rollup input, output, plugins, and external dependencies
- Optimize bundle size with code splitting and dead code elimination
- Build libraries for npm distribution
How to use this skill
Workflow
- Configure — create
rollup.config.jswith input, output, and plugins - Build — run
rollup -cto generate bundles - Validate — check output formats, bundle size, and tree shaking effectiveness
- Publish — set
main,module, andexportsinpackage.json