{"library":"dotenv-webpack","type":"library","category":null,"description":"A secure webpack plugin that wraps dotenv and Webpack.DefinePlugin to expose only explicitly referenced process.env variables in your bundle. Current version 9.0.0 (2026-03-07) supports webpack 4/5 and Node >=18.18.0. Unlike raw dotenv, it safely reduces leakage of sensitive keys by only including variables actually used in code. Compatible with rspack since v8.1.0. Breaking change in v9: package exports directly from src/index.js, no dist/ wrappers. Release cadence is irregular, with major versions every 1-2 years.","language":"javascript","status":"active","version":"9.0.0","tags":["javascript","dotenv","env","safe","environment","dotenv-safe","variables","process","process.env","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install dotenv-webpack","imports":["import Dotenv from 'dotenv-webpack';","const Dotenv = require('dotenv-webpack');","import Dotenv from 'dotenv-webpack';"]},{"cmd":"yarn add dotenv-webpack","imports":[]},{"cmd":"pnpm add dotenv-webpack","imports":[]}],"homepage":null,"github":"https://github.com/mrsteele/dotenv-webpack","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/dotenv-webpack","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/dotenv-webpack/compatibility"}}