chihab / dotenv-run

Seamlessly load environment variables. Supports cli, esbuild, rollup, vite, webpack, angular. ESM and Monorepos.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expose environment variables in `import.meta.env`

chihab opened this issue · comments

Expose env variables on the special import.meta.env object.

Inspiration: https://vitejs.dev/guide/env-and-mode.html#production-replacement

It is currently in developer preview in v16.0.0. We can use both process.env and import.meta.env

Docs should be updated.