Fix console.error filtering (#4748)

This commit is contained in:
Bjorn Lu 2022-09-14 22:08:34 +08:00 committed by GitHub
parent 3372d757ca
commit c5e134d035
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix console.error filtering

View file

@ -222,4 +222,5 @@ function filteredConsoleError(msg: any, ...rest: any[]) {
msg.includes('https://reactjs.org/link/invalid-hook-call');
if (isKnownReactHookError) return;
}
originalConsoleError(msg, ...rest);
}