An esbuild plugin that automatically replaces environment variable references in source code with values defined at build time. Current stable version is 0.3.0, released September 2023. Update cadence is irregular. Key differentiators: supports glob-based include/exclude patterns for fine-grained control, allows ignoring specific environment variables, and replaces with undefined in browser mode. Alternative to manual Define or envsubst approaches. Ships TypeScript types.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Package is ESM-only; CJS require() will not work. Use import syntax.
Package does not export a default export. Must use named import.
Shows basic usage of autoEnv plugin with esbuild, replacing environment variables in src directory with build-time values.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.