Skip to content
JS
Package

rollup-plugin-dotenv

Rollup plugin that loads available .env files and replaces the defined variables with their values

v0.5.1, 15 Apr 2024MITESM + CommonJSTypes: BundledConfigurationBundler plugins and loaders
$ npm install rollup-plugin-dotenv

Key numbers

As of 25 Sept 2026
Weekly downloads
10.7k
+39% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
2 years ago
v0.5.1
GitHub stars
33
11 forks
Open issues / PRs
2 / 0
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
010k20k30k40kSept 2025Mar 2026Sept 2026High 32.5k (21 Jul 2026)Low 5.7k (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.

10,683 downloads last week, 68,203 in the last month. The 12-month change of +39% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
0.5.1, 15 Apr 20242 years ago
First published
-
Last push to GitHub
15 Apr 2024892 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
0
Commits, last 52 weeks
0
Dependents on npm
57

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=14
Runtimes
-
Unpacked size (npm)
8.7 kB
Dependencies (2)
dotenv@rollup/plugin-replace
Peer dependencies (1)
rollup
npm install rollup-plugin-dotenv
  • jsDelivrhttps://cdn.jsdelivr.net/npm/rollup-plugin-dotenv@0.5.1/
  • unpkghttps://unpkg.com/rollup-plugin-dotenv@0.5.1/
  • esm.shhttps://esm.sh/rollup-plugin-dotenv@0.5.1
PackageWeekly downloadsGzipLast releaseModuleComparison
dotenv-webpack929.6k-6 months agoCommonJS-
dotenv-json72.9k-8 years agoCommonJS-
esbuild-envfile-plugin14.6k-2 years agoCommonJS-
dotenv-safe192.3k-2 years agoCommonJS-
update-dotenv68.6k-7 years agoCommonJS-
@varlock/vite-integration42.6k-12 days agoESM only-
edit-dotenv8.3k-9 years ago--
@import-meta-env/unplugin24.9k-1 year agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.