rollup

Installation
SKILL.md

When to use this skill

Use this skill whenever the user wants to:

  • 用 Rollup 打包库或应用、Tree-shaking、多格式输出(ESM/CJS)
  • 配置 input、output、plugin 与外部依赖

How to use this skill

  1. 配置:rollup.config.js;input、output.format、output.file/dir;plugins(node-resolve、commonjs、terser)。
  2. 模式:库打包多格式;应用可与 Vite 或配合其他工具。
  3. 参考https://rollupjs.org/

Best Practices

  • 库声明 external;保留 sourcemap 便于调试。
  • 大依赖外部化;按需用 code-splitting。

Keywords

Installs
20
First Seen
Jun 23, 2026
rollup — full-stack-skills/build-skills