Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

@rollup/plugin-replace

Rollup plugin to replace strings and variables during bundling.

Build tools and bundlersNPM

GitHubWebsite

1. License

License from npm.

github.com/rollup/plugins

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What @rollup/plugin-replace does

Rollup plugin to replace strings and variables during bundling.

@rollup/plugin-replace popularity

59 / 100
Gid Score, #1106 overall
19.7M
downloads a week, npm
3,758
GitHub stars
4
agent projects use it
@rollup/plugin-replace: downloads per weeknpm, @rollup/plugin-replace 19,709,321
@rollup/plugin-replace: GitHub starsrollup/plugins 3,758

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How @rollup/plugin-replace is used

  • @rollup/plugin-replace is a dependency in 4 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 32 projects, and what it is used with below comes from all of them.
  • Projects that use it most often also use @rollup/plugin-commonjs (75.0%), Phaser (53.1%), Rollup (46.9%).

Often used with

In 75.0% of its projects
In 53.1% of its projects
In 46.9% of its projects
In 43.8% of its projects
In 40.6% of its projects
In 93.8% of its projects
In 53.1% of its projects
In 34.4% of its projects

More about @rollup/plugin-replace

Funding
  • Open Collective: https://opencollective.com/rollup

See all

More in Build tools and bundlers

Alternatives

@rollup/plugin-replace This page

MITGid 5919.7M/wk

Compare @rollup/plugin-replace with another tool

Get started

Install it.

npm install @rollup/plugin-replace

No step-by-step start for @rollup/plugin-replace yet: we have not written its hand-checked card.