Skip to content

Commit

Permalink
fix: define should be included in hash calc when keepProcessEnv is false
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Dec 9, 2024
1 parent 00d9992 commit ee24256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/optimizer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ function getConfigHash(environment: Environment): string {
const { optimizeDeps } = config
const content = JSON.stringify(
{
define: config.keepProcessEnv
define: !config.keepProcessEnv
? process.env.NODE_ENV || config.mode
: null,
root: config.root,
Expand Down

0 comments on commit ee24256

Please sign in to comment.