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 d4ddd96 commit 1463693Copy full SHA for 1463693
packages/core/src/tools/globalObject.ts
@@ -49,3 +49,5 @@ export function getGlobalObject<T = typeof globalThis>(): T {
49
export const globalObject = getGlobalObject<GlobalObject>()
50
51
export const isWorkerEnvironment = 'WorkerGlobalScope' in globalObject
52
+// @ts-expect-error module is undefined outside of Node.
53
+export const isNodeEnvironment = typeof module !== 'undefined' && module.exports
0 commit comments