vite-plugin-environment
JSON →A Vite.js plugin (v1.1.3) that exposes environment variables to client code without requiring the VITE_ prefix. It acts as a shorthand for Vite's define option, similar to webpack's EnvironmentPlugin. Supports loading prefixed variables, custom define targets (import.meta.env), default values, optional/null handling, and .env file loading (on by default). Currently stable with monthly releases. Differentiates from Vite's built-in import.meta.env by allowing process.env usage and arbitrary variable names.
Traffic · last 30 days stale · no recent hits
total hits 14
actors 4 distinct systems
last hit 16d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · VN · 🇫🇷 France · 🇩🇪 Germany
Resources
API endpoints
full doc /v1/registry/vite-plugin-environment
compatibility /v1/registry/vite-plugin-environment/compatibility