agentsclimarketplace

Rollup

Skill G1Joshi/Agent-Skills/skills/tools/rollup

Rollup ES module bundler. Use for library bundling.From its SKILL.md

Install
npx -y skills add G1Joshi/Agent-Skills --skill rollup

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.0 KB, 229 tokens by cl100k_base, as published. Nobody here has run it

Rollup

Rollup (v4) is the bundler of choice for libraries. It produces smaller, cleaner code than Webpack and pioneered Tree Shaking.

When to Use

  • NPM Packages: Building a library for others to use.
  • Flat Bundling: "Scope Hoisting" puts everything in one closure for performance.

Core Concepts

Tree Shaking

Rollup analyzes the import graph and excludes unused code statically.

Formats

Outputs esm, cjs, umd, iife.

Plugins

The ecosystem that Vite adopted.

Best Practices (2025)

Do:

  • Use pkg.exports: Configure package.json exports correctly for ESM/CJS dual publish.
  • Externalize dependencies: Don't bundle react into your library. Mark it as external.

Don't:

  • Don't use for Apps: Use Vite (which uses Rollup internally) for apps. Use Rollup directly for libs.

References

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 628,971. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.