Skip to content
JS
Package

rollup-plugin-replace

[![](https://img.shields.io/npm/v/rollup-plugin-replace.svg?style=flat)](https://www.npmjs.com/package/rollup-plugin-replace)

v2.2.0MITESM + CommonJSTypes: NoneBundler plugins and loaders
$ npm install rollup-plugin-replace
Deprecated on npm
This module has moved and is now available at @rollup/plugin-replace. Please update your dependencies. This version is no longer maintained.

Key numbers

As of 25 Sept 2026
Weekly downloads
144.3k
+21% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
-
v2.2.0
GitHub stars
163
18 forks
Open issues / PRs
0 / 2
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300kSept 2025Mar 2026Sept 2026High 278k (25 Nov 2025)Low 85.9k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

144,338 downloads last week, 610,159 in the last month. The 12-month change of +21% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.2.0
First published
-
Last push to GitHub
4 Aug 20211,877 days before the snapshot
Repository archived
Yes
Open issues
0
Open pull requests
2
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
12 kB
Dependencies (2)
magic-stringrollup-pluginutils
npm install rollup-plugin-replace
  • jsDelivrhttps://cdn.jsdelivr.net/npm/rollup-plugin-replace@2.2.0/
  • unpkghttps://unpkg.com/rollup-plugin-replace@2.2.0/
  • esm.shhttps://esm.sh/rollup-plugin-replace@2.2.0
PackageWeekly downloadsGzipLast releaseModuleComparison
rollup-plugin-license190.4k-5 months agoCommonJS-
rollup-plugin-includepaths58.3k-6 years agoCommonJS-
rollup-plugin-ignore30k-5 years agoCommonJS-
rollup-plugin-strip-banner11.3k-2 years agoCommonJS-
rollup-plugin-typescript21.6m-5 months agoESM + CommonJS-
rollup-plugin-prettier15.3k-2 months agoCommonJS-
rollup-plugin-unassert8k-3 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): deprecated.