vitejs / vite

Next generation frontend tooling. It's fast!
http://vite.dev
MIT License
68.73k stars 6.21k forks source link

fix: `loadEnv` can return a object with `undefined` values #18643

Closed eriandev closed 1 week ago

eriandev commented 1 week ago

Corrects the return typing of the loadEnv function because it may return undefined values in the object values.

bluwy commented 1 week ago

Do you have an example where it could return undefined?