Skip to content
JS
Package

rollup-plugin-inject

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

v3.0.2, 29 Oct 2019MITESM + CommonJSTypes: NoneBundler plugins and loaders
$ npm install rollup-plugin-inject
Deprecated on npm
This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.

Key numbers

As of 25 Sept 2026
Weekly downloads
1.1m
+67% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
6 years ago
v3.0.2
GitHub stars
77
16 forks
Open issues / PRs
0 / 3
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3mSept 2025Mar 2026Sept 2026High 2.2m (21 Apr 2026)Low 505.2k (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.

1,097,541 downloads last week, 5,555,496 in the last month. The 12-month change of +67% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
013 in total
Latest version
3.0.2, 29 Oct 20196 years ago
First published
25 Oct 2015
Last push to GitHub
4 Aug 20211,877 days before the snapshot
Repository archived
Yes
Open issues
0
Open pull requests
3
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v3 first release 3.0.0, 12 Jun 2019
  2. v2 first release 2.0.0, 19 Sept 2016
  3. v1 first release 1.0.0, 25 Oct 2015

Recent releases

VersionPublished
3.0.229 Oct 2019
3.0.124 Jul 2019
3.0.012 Jun 2019
2.2.026 Jul 2018
2.1.025 Jul 2018
2.0.019 Sept 2016
1.4.123 Jun 2016
1.4.07 Jan 2016
1.3.027 Dec 2015
1.2.015 Nov 2015
1.1.128 Oct 2015
1.1.028 Oct 2015
1.0.025 Oct 2015
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
20 kB
Dependencies (3)
magic-stringestree-walkerrollup-pluginutils
npm install rollup-plugin-inject
  • jsDelivrhttps://cdn.jsdelivr.net/npm/rollup-plugin-inject@3.0.2/
  • unpkghttps://unpkg.com/rollup-plugin-inject@3.0.2/
  • esm.shhttps://esm.sh/rollup-plugin-inject@3.0.2
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-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): deprecated.