@rollup/plugin-commonjs
Rollup plugin to convert CommonJS modules to ES2015 for bundling.
Build tools and bundlers npm MIT
Used in agent projects
41
0.3% of 12,697 public repos built with AI coding agents
Rank in build tools and bundlers
#44 of 81
by use in those projects
Downloads
23.4M
npm, last 7 days, @rollup/plugin-commonjs
GitHub stars
3,760
last push May 29, 2026
How @rollup/plugin-commonjs is used
@rollup/plugin-commonjs is a dependency in 41 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.3%), #44 of 81 in build tools and bundlers. The most used alternative there is Vite. Projects that use it most often also use Rollup (78.0%), @rollup/plugin-node-resolve (78.0%), @rollup/plugin-typescript (58.5%).
Often used with @rollup/plugin-commonjs
| Rollup | 78.0% of @rollup/plugin-commonjs projects · 141.6× more than average |
|---|---|
| @rollup/plugin-node-resolve | 78.0% of @rollup/plugin-commonjs projects · 247.7× more than average |
| @rollup/plugin-typescript | 58.5% of @rollup/plugin-commonjs projects · 247.7× more than average |
| @rollup/plugin-replace | 46.3% of @rollup/plugin-commonjs projects · 226.3× more than average |
| TypeScript | 87.8% of @rollup/plugin-commonjs projects · 1.6× more than average |
| Jest | 31.7% of @rollup/plugin-commonjs projects · 5.7× more than average |
| rimraf | 29.3% of @rollup/plugin-commonjs projects · 16.2× more than average |
| Phaser | 26.8% of @rollup/plugin-commonjs projects · 6.6× more than average |
By coding agent
| GitHub Copilot | 0.3% of projects set up for it |
|---|
Share of public repos configured for each agent that list @rollup/plugin-commonjs as a dependency.
Install
| Package | npm install @rollup/plugin-commonjs |
|---|---|
| Main stacks | TypeScript / JavaScript (39), Python (2) |
| Example projects | confluentinc/vscode, dannxbt/jupiverse-kit, aleph-im/aleph-js, cjlawson02/ntcore-ts, ichiroc/chatgpt2scratch |
Alternatives to @rollup/plugin-commonjs
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Vite npm Fast native-ESM powered web development build tool and dev server. |
2,897 (22.8%) | 194M | 83.3K | MIT |
| Babel (JavaScript) npm JavaScript compiler for transforming modern JavaScript to compatible code. |
484 (3.8%) | 187M | 44.1K | MIT |
| Turborepo npm High-performance build system for monorepos with task parallelization. |
399 (3.1%) | 29.5M | 31.2K | MIT |
| esbuild npm Extremely fast JavaScript and CSS bundler and minifier written in Go. |
342 (2.7%) | 3M | 40.1K | MIT |
| webpack npm Module bundler that packages JavaScript, assets and dependencies for browser deployment. |
255 (2.0%) | 54.9M | 66.1K | MIT |
| react-scripts npm Build configuration and scripts for Create React App zero-configuration setup. |
231 (1.8%) | 2.4M | 103K | MIT |
| React Compiler Babel Plugin npm Babel plugin for React Compiler that optimizes React component rendering. |
202 (1.6%) | 17.8M | 251K | MIT |
| webpack CLI npm Command-line interface for webpack bundler and related build tools. |
201 (1.6%) | 10.4M | 2,617 | MIT |