Skip to content

Commit

Permalink
fix(debug): skip filter object args (#13098)
Browse files Browse the repository at this point in the history
  • Loading branch information
sun0day authored May 5, 2023
1 parent 9041e19 commit d95a9af
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 @@ -169,7 +169,7 @@ export function createDebugger(

if (enabled) {
return (...args: [string, ...any[]]) => {
if (!filter || args.some((a) => a?.includes(filter))) {
if (!filter || args.some((a) => a?.includes?.(filter))) {
log(...args)
}
}
Expand Down

0 comments on commit d95a9af

Please sign in to comment.