Skip to content
JS
Package

@rollup/plugin-inject

Scan modules for global variables and injects `import` statements where necessary

v5.0.5, 15 Oct 2023MITESM + CommonJSTypes: Bundled
$ npm install @rollup/plugin-inject

Key numbers

As of 25 Sept 2026
Weekly downloads
3m
+66% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
2 years ago
v5.0.5
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
02m4m6mSept 2025Mar 2026Sept 2026High 4.3m (25 Aug 2026)Low 1.2m (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.

2,976,961 downloads last week, 15,069,014 in the last month. The 12-month change of +66% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
011 in total
Latest version
5.0.5, 15 Oct 20232 years ago
First published
20 Nov 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
212

Major versions

  1. v5 first release 5.0.0, 9 Oct 2022
  2. v4 first release 4.0.0, 20 Nov 2019

Recent releases

VersionPublished
5.0.515 Oct 2023
5.0.45 Oct 2023
5.0.317 Dec 2022
5.0.221 Oct 2022
5.0.115 Oct 2022
5.0.09 Oct 2022
4.0.428 Dec 2021
4.0.319 Oct 2021
4.0.211 May 2020
4.0.11 Feb 2020
4.0.020 Nov 2019
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)
19 kB
Dependencies (3)
magic-stringestree-walker@rollup/pluginutils
Peer dependencies (1)
rollup
npm install @rollup/plugin-inject
  • jsDelivrhttps://cdn.jsdelivr.net/npm/@rollup/plugin-inject@5.0.5/
  • unpkghttps://unpkg.com/@rollup/plugin-inject@5.0.5/
  • esm.shhttps://esm.sh/@rollup/plugin-inject@5.0.5
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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