Package
rollup-plugin-inject
Scan modules for global variables and inject `import` statements where necessary
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
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
- v3 first release 3.0.0, 12 Jun 2019
- v2 first release 2.0.0, 19 Sept 2016
- v1 first release 1.0.0, 25 Oct 2015
Recent releases
| Version | Published |
|---|---|
| 3.0.2 | 29 Oct 2019 |
| 3.0.1 | 24 Jul 2019 |
| 3.0.0 | 12 Jun 2019 |
| 2.2.0 | 26 Jul 2018 |
| 2.1.0 | 25 Jul 2018 |
| 2.0.0 | 19 Sept 2016 |
| 1.4.1 | 23 Jun 2016 |
| 1.4.0 | 7 Jan 2016 |
| 1.3.0 | 27 Dec 2015 |
| 1.2.0 | 15 Nov 2015 |
| 1.1.1 | 28 Oct 2015 |
| 1.1.0 | 28 Oct 2015 |
| 1.0.0 | 25 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- jsDelivr
https://cdn.jsdelivr.net/npm/rollup-plugin-inject@3.0.2/ - unpkg
https://unpkg.com/rollup-plugin-inject@3.0.2/ - esm.sh
https://esm.sh/rollup-plugin-inject@3.0.2
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| rollup-plugin-license | 190.4k | - | 5 months ago | CommonJS | - |
| rollup-plugin-includepaths | 58.3k | - | 6 years ago | CommonJS | - |
| rollup-plugin-ignore | 30k | - | 5 years ago | CommonJS | - |
| rollup-plugin-strip-banner | 11.3k | - | 2 years ago | CommonJS | - |
| rollup-plugin-typescript2 | 1.6m | - | 5 months ago | ESM + CommonJS | - |
| rollup-plugin-prettier | 15.3k | - | 2 months ago | CommonJS | - |
Indexability: Not indexed (discovery only): deprecated.