diff --git a/src/_internal/utils/env.ts b/src/_internal/utils/env.ts index e3a026c16..c112525c1 100644 --- a/src/_internal/utils/env.ts +++ b/src/_internal/utils/env.ts @@ -3,7 +3,7 @@ import { hasRequestAnimationFrame, isWindowDefined } from './helper' export const IS_REACT_LEGACY = !React.useId -export const IS_SERVER = !isWindowDefined || 'Deno' in window +export const IS_SERVER = !isWindowDefined || 'Deno' in globalThis // Polyfill requestAnimationFrame export const rAF = (