Breaking change to env vars expansion since vite@5.1.2 #16175
Labels
bug: upstream
Bug in a dependency of Vite
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
We're using env expansion feature for our .env files.
Given following .env file as example:
We expect, the behaviour of Vite@<=5.1.1:
Actual result for Vite@>=5.1.2:
the
-678-ab
part is missing nowReproduction
https://stackblitz.com/edit/vitejs-vite-yalk8f?file=.env
Steps to reproduce
UPD: Seems that the braking change have only affected the env expansion with kebab-cased content after the env var reference.
Example:
Vite@<=5.1.1 (correct)
Vite@>=5.1.2 (breaking change)
You can try it yourself by changing a Vite version in this minimalistic Vite-only example
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: