Skip to content

Commit

Permalink
style(utils): remove null check (#16112)
Browse files Browse the repository at this point in the history
  • Loading branch information
xjh22222228 authored Mar 8, 2024
1 parent eef9da1 commit 0d2df52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ function mergeConfigRecursively(
}

if (Array.isArray(existing) || Array.isArray(value)) {
merged[key] = [...arraify(existing ?? []), ...arraify(value ?? [])]
merged[key] = [...arraify(existing), ...arraify(value)]
continue
}
if (isObject(existing) && isObject(value)) {
Expand Down

0 comments on commit 0d2df52

Please sign in to comment.