JavaScript TypeScript HTML CSS
Need help with rollup?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.
rollup

Description

Next-generation ES module bundler

19.3K Stars 948 Forks Other 4.4K Commits 260 Opened issues

Services available

Need anything else?

Rollup

npm version install size code coverage backers sponsors license dependency status Join the chat at https://is.gd/rollup_chat

Overview

Rollup is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library or application. It uses the standardized ES module format for code, instead of previous idiosyncratic solutions such as CommonJS and AMD. ES modules let you freely and seamlessly combine the most useful individual functions from your favorite libraries. Rollup can optimize ES modules for faster native loading in modern browsers, or output a legacy module format allowing ES module workflows today.

Quick Start Guide

Install with

npm install --global rollup
. Rollup can be used either through a command line interface with an optional configuration file, or else through its JavaScript API. Run
rollup --help
to see the available options and parameters. The starter project templates, rollup-starter-lib and rollup-starter-app, demonstrate common configuration options, and more detailed instructions are available throughout the user guide.

Commands

These commands assume the entry point to your application is named main.js, and that you'd like all imports compiled into a single file named bundle.js.

For browsers:

# compile to a 

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.