Skip to content

Commit 3a17b33

Browse files
committed
fix: no assume process global
closes #1291
1 parent fc8e9a1 commit 3a17b33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/prelude.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export const createDeferred = <$T>(options?: { strict?: boolean }): Deferred<$T>
291291
}
292292

293293
export const debug = (...args: any[]) => {
294-
if (process.env[`DEBUG`]) {
294+
if (globalThis.process?.env?.['DEBUG']) {
295295
console.log(...args)
296296
}
297297
}

0 commit comments

Comments
 (0)