Work

Rollup

project · 2015

Developer Tools JavaScript Build Tools

Rollup is a JavaScript module bundler that pioneered tree-shaking and ES module output. Created by Rich Harris, it influenced how all modern bundlers optimize code.

Key Innovation

Rollup introduced tree-shaking to JavaScript:

Tree-Shaking

Tree-shaking eliminates code that isn’t actually used:

// library.js
export function used() {}
export function unused() {}

// app.js
import { used } from './library.js';

Rollup removes unused() from the final bundle.

Impact

Rollup’s innovations spread throughout the ecosystem:

Use Cases

Rollup excels at: