rollup-config-generator

Generate Rollup configuration files for bundling JavaScript libraries.

Updated Dec 17, 2025
One-click install
npx skills add https://github.com/ehtbanton/ClaudeSkillsRepo --skill rollup-config-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rollup-config-generator
Source: https://github.com/ehtbanton/ClaudeSkillsRepo/tree/main/rollup-config-generator
Command: npx skills add https://github.com/ehtbanton/ClaudeSkillsRepo --skill rollup-config-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @rollup/plugin-node-resolve, @rollup/plugin-commonjs, @rollup/plugin-typescript, @rollup/plugin-terser, rollup-plugin-dts, rollup-plugin-peer-deps-external, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the creation of Rollup configuration files, simplifying the process of bundling JavaScript libraries for various module formats.

Core Features & Use Cases

  • Automated Configuration: Generates a rollup.config.js or rollup.config.mjs file.
  • Plugin Integration: Includes common plugins like @rollup/plugin-node-resolve, @rollup/plugin-commonjs, @rollup/plugin-typescript, @rollup/plugin-terser, rollup-plugin-dts, and rollup-plugin-peer-deps-external.
  • Use Case: Quickly set up a Rollup configuration for a new TypeScript-based JavaScript library, ensuring efficient bundling for both CommonJS and ES Modules.

Quick Start

Generate a rollup config for a TypeScript library.

Frequently Asked Questions about rollup-config-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a Rollup configuration for a TypeScript library?

To generate a Rollup configuration for a TypeScript library, you need package.json and tsconfig.json files. The Skill outputs a rollup.config.js or rollup.config.mjs file configured for ESM and CJS outputs.

What is the best way to bundle JavaScript libraries for both ESM and CommonJS?

Bundling JavaScript libraries for both ESM and CommonJS is handled by generating a Rollup configuration that targets both module formats. The configuration integrates node-resolve and commonjs plugins to process dependencies for multi-format outputs.

Does Rollup bundling require TypeScript and Terser plugins for JavaScript libraries?

Rollup bundling for JavaScript libraries integrates TypeScript and Terser plugins to compile code and minify outputs. The generated configuration automatically includes these plugins alongside dts and peer-deps-external plugins for type definitions and dependency handling.

Can I externalize peer dependencies when generating a Rollup config?

You can externalize peer dependencies when generating a Rollup config using the rollup-plugin-peer-deps-external plugin. The Skill automatically includes this plugin to ensure peer dependencies are excluded from your final bundled library output.

How does Rollup handle TypeScript type definitions during JavaScript library bundling?

Rollup handles TypeScript type definitions during JavaScript library bundling by including the rollup-plugin-dts plugin in the generated configuration. This plugin processes and bundles your TypeScript declaration files alongside the compiled ESM and CJS outputs.