You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux 5.15.133.1-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
Build a project with the command bun build target=bun --minify.
This project should contain environment variables imported with process.env.VARIABLE
Example of the .env file: VARIABLE=Thisisavariable
What is the expected behavior?
When building the project, the process.env.VARIABLE should be visible on search (or an equivalent)
What do you see instead?
The process.env.VARIABLE is replaced by it's value in the environment file.
For the given example in the code there is directly: Thisisavariable
Additional information
The expected behavior can be obtained when replacing process.env.VARIABLE by Bun.env.VARIABLE
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.0.23+83f2432da
What platform is your computer?
Linux 5.15.133.1-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
Build a project with the command
bun build target=bun --minify
.This project should contain environment variables imported with
process.env.VARIABLE
Example of the
.env
file:VARIABLE=Thisisavariable
What is the expected behavior?
When building the project, the
process.env.VARIABLE
should be visible on search (or an equivalent)What do you see instead?
The
process.env.VARIABLE
is replaced by it's value in the environment file.For the given example in the code there is directly:
Thisisavariable
Additional information
The expected behavior can be obtained when replacing
process.env.VARIABLE
byBun.env.VARIABLE
The text was updated successfully, but these errors were encountered: