Skip to content
JS
Package

@rollup/plugin-replace

Replace strings in files while bundling

v6.0.3, 29 Oct 2025MITESM + CommonJSTypes: Bundled
$ npm install @rollup/plugin-replace

Key numbers

As of 25 Sept 2026
Weekly downloads
11.8m
+78% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
10 months ago
v6.0.3
GitHub stars
3.8k
635 forks
Open issues / PRs
29 / 17
Contributors
259
Commits, last 52 weeks
69

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15mSept 2025Mar 2026Sept 2026High 14.3m (25 Aug 2026)Low 4.3m (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.

11,813,252 downloads last week, 52,850,580 in the last month. The 12-month change of +78% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
126 in total
Latest version
6.0.3, 29 Oct 202510 months ago
First published
28 Oct 2019
Last push to GitHub
29 May 2026118 days before the snapshot
Repository archived
No
Open issues
29
Open pull requests
17
Commits, last 52 weeks
69
Dependents on npm
1,241

Major versions

  1. v6 first release 6.0.0, 23 Sept 2024
  2. v5 first release 5.0.0, 10 Oct 2022
  3. v4 first release 4.0.0, 22 Feb 2022
  4. v3 first release 3.0.0, 16 Jul 2021
  5. v2 first release 2.2.0, 28 Oct 2019

Recent releases

VersionPublished
6.0.329 Oct 2025
6.0.215 Dec 2024
6.0.123 Sept 2024
6.0.023 Sept 2024
5.0.75 Jun 2024
5.0.65 Jun 2024
5.0.529 Oct 2023
5.0.415 Oct 2023
5.0.35 Oct 2023
5.0.217 Dec 2022
5.0.121 Oct 2022
5.0.010 Oct 2022
4.0.022 Feb 2022
3.1.011 Feb 2022
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=14.0.0
Runtimes
-
Unpacked size (npm)
23 kB
Dependencies (2)
magic-string@rollup/pluginutils
Peer dependencies (1)
rollup
npm install @rollup/plugin-replace
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@rollup/plugin-replace@6.0.3/
  • unpkghttps://unpkg.com/@rollup/plugin-replace@6.0.3/
  • esm.shhttps://esm.sh/@rollup/plugin-replace@6.0.3
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.