Command Palette

Search for a command to run...

Page Inspect

https://rollupjs.org/
Internal Links
9
External Links
6
Images
3
Headings
7

Page Content

Title:Rollup
Description:compile JS code
HTML Size:17 KB
Markdown Size:2 KB
Fetched At:November 18, 2025

Page Structure

h1rollup.jsThe JavaScript module bundler
h2The Web, Node …
h2Tree-shaking
h2Code-splitting without overhead
h2Powerful plugins
h2Handles your special needs
h2The bundler behind Vite

Markdown Content

Rollup

Skip to content

Rollup

SearchK

Main Navigation guidereplchatopencollective

English

简体中文

English

简体中文

Appearance

# rollup.jsThe JavaScript module bundler

Compile small pieces of code into something larger and more complex

Get Started

View on GitHub

🌍

## The Web, Node …

Rollup supports many output formats: ES modules, CommonJS, UMD, SystemJS and more. Bundle not only for the web but for many other platforms as well.

See all formats

🌳

## Tree-shaking

Superior dead code elimination based on deep execution path analysis with the tool that brought tree-shaking to the JavaScript world.

Learn about tree-shaking

🗡️

## Code-splitting without overhead

Split code based on different entry points and dynamic imports by just using the import mechanism of the output format instead of customer loader code.

How to use code-splitting

🔌

## Powerful plugins

An easy to learn plugin API that allows you to implement powerful code injections and transformations with little code. Adopted by Vite and WMR.

Learn how to write plugins

🛠️

## Handles your special needs

Rollup is not opinionated. Many configuration options and a rich plugin interface make it the ideal bundler for special build flows and higher level tooling.

See all options

## The bundler behind Vite

Developing for the web? Vite pre-configures Rollup for you with sensible defaults and powerful plugins while giving you an insanely fast development server.

Check out Vite

Released under the MIT License.

Copyright © 2015-present Rollup contributors