Bundle your JavaScript with Rollup. Enter your entry file and output settings below, and this free generator will write a ready-to-use rollup.config.js for you.
Rollup Config Generator
How to Use
- Enter your entry JavaScript file path.
- Choose the output module format for your bundle.
- Set the output file path for the bundle.
- Copy the generated code into rollup.config.js in your project root.
Key Features
- Generates a working Rollup configuration.
- Supports es, cjs, umd and iife formats.
- Live preview updates as you type.
- Runs entirely in your browser.
- Free with no sign-up.
FAQs
What is Rollup?
Rollup is a module bundler for JavaScript, popular for building libraries with efficient tree-shaking.
Which format should I choose?
Use es for modern bundlers, cjs for Node, umd or iife for browsers without a bundler.
How do I run the build?
Install Rollup, save the config, then run npx rollup -c in your project folder.