Skip to content

Commit

Permalink
fix(build): env output is not stable (#17748)
Browse files Browse the repository at this point in the history
  • Loading branch information
houfeng0923 authored Jul 23, 2024
1 parent 11b12cf commit b240a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/define.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export async function replaceDefine(
*/
export function serializeDefine(define: Record<string, any>): string {
let res = `{`
const keys = Object.keys(define)
const keys = Object.keys(define).sort()
for (let i = 0; i < keys.length; i++) {
const key = keys[i]
const val = define[key]
Expand Down

0 comments on commit b240a83

Please sign in to comment.