Skip to content
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

process.env has not been replaced in lib mode #19008

Closed
7 tasks done
MyPledge opened this issue Dec 19, 2024 · 0 comments
Closed
7 tasks done

process.env has not been replaced in lib mode #19008

MyPledge opened this issue Dec 19, 2024 · 0 comments

Comments

@MyPledge
Copy link

MyPledge commented Dec 19, 2024

Describe the bug

In lib mode, replacing process.env is ignored by default, a behavior introduced in #8090 . This inconsistency with the default build behavior does not appear to be documented. Additionally, the EnvironmentOptions.keepProcessEnv option does not control this behavior.

Reproduction

https://stackblitz.com/edit/vitejs-vite-9tea6xj7

Steps to reproduce

No response

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm

Used Package Manager

pnpm

Logs

No response

Validations

@MyPledge MyPledge closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant