We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2bc284 commit 5ae057dCopy full SHA for 5ae057d
src/parser/utils.ts
@@ -77,7 +77,7 @@ export function isObjectLike(candidate: unknown): candidate is Record<string, un
77
78
declare let console: { warn(...message: unknown[]): void };
79
export function deprecate<T extends Function>(fn: T, message: string): T {
80
- if (typeof window === 'undefined' || typeof self === 'undefined') {
+ if (typeof window === 'undefined' && typeof self === 'undefined') {
81
// eslint-disable-next-line @typescript-eslint/no-var-requires
82
return require('util').deprecate(fn, message);
83
}
0 commit comments