Skip to content

Conversation

houfeng0923
Copy link
Contributor

make env output sequence stable

Description
If use import.meta.env directly, the output maybe not stable.
some variable is defined in vite.config.js, otherwise it can merge in .env file and environment in cli.
so the output string is different, this will causes the output files with different [hashcode] .

make env output sequence stable
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to do so

@patak-dev patak-dev merged commit b240a83 into vitejs:main Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants