-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Beta] Dotenv expand is failing the build - consider reverting processing process. env #11197
Comments
vite/packages/vite/src/node/env.ts Lines 40 to 43 in 8b83089
Seems like we might need to fork dotenv-expand, or have expand not use |
I think we still need expand |
I prefer to workaround the bug in this way |
Maybe we could escape |
Yeah we should expand
I think that brings perf implications compared to forking it. Maybe looping in @motdotla if this could be implemented upstream? Summary so far is that we want to read |
Maybe we can have a patch in the vite monorepo instead of forking until this is implemented upstream? |
It is worth mentioning that If we fork |
Describe the bug
Hi,
One of the breaking changes in vite late alpha is preventing us to run the beta:
d5fe92c
Parsing / expanding with dotenv process.env variable is highly disruptive and certainly can lead to unexpected behaviour. Here we are testing Warp terminal, it is injecting this WARP_PS1 containing
$
. I can see how this could randomly bite other users and some side effects might be hard to debug (if it actually expand some variables from process.env)Please consider reverting this change, this issue was already reported in the past but now that process.env is parsed we don't have any control on these vars for escaping the
$
so the workaround cannot be applied see #6858 (comment)Reproduction
Not relevant
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: