Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

@rollup/plugin-replace

Rollup plugin to replace strings and variables during bundling.

Build tools and bundlers npm MIT

Used in agent projects
26
0.2% of 12,697 public repos built with AI coding agents
Rank in build tools and bundlers
#68 of 81
by use in those projects
Downloads
14.5M
npm, last 7 days, @rollup/plugin-replace
GitHub stars
3,760
last push May 29, 2026

How @rollup/plugin-replace is used

@rollup/plugin-replace is a dependency in 26 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.2%), #68 of 81 in build tools and bundlers. The most used alternative there is Vite. Projects that use it most often also use @rollup/plugin-commonjs (73.1%), Phaser (57.7%), Rollup (50.0%).

Often used with @rollup/plugin-replace

@rollup/plugin-commonjs73.1% of @rollup/plugin-replace projects · 226.3× more than average
Phaser57.7% of @rollup/plugin-replace projects · 14.2× more than average
Rollup50.0% of @rollup/plugin-replace projects · 90.7× more than average
@rollup/plugin-node-resolve42.3% of @rollup/plugin-replace projects · 134.3× more than average
TypeScript92.3% of @rollup/plugin-replace projects · 1.7× more than average
@rollup/plugin-typescript34.6% of @rollup/plugin-replace projects · 146.5× more than average
rimraf30.8% of @rollup/plugin-replace projects · 17.0× more than average
Vite50.0% of @rollup/plugin-replace projects · 2.2× more than average

Install

Packagenpm install @rollup/plugin-replace
Main stacksTypeScript / JavaScript (25), Python (1)
Example projectsconfluentinc/vscode, devyumao/ldjam49-unstable-island-farming, dimaslanjaka/php-proxy-hunter, svendotdev/pumpfun-bundler, ManaJAM-2022/game

Alternatives to @rollup/plugin-replace

All build tools and bundlers

Tool Used in agent projectsDownloads / wk GitHub starsLicense
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
Is @rollup/plugin-replace right for your project? Ask AgentGid →