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 committed 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
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.