Skip to content

Commit

Permalink
fix: no assume process global
Browse files Browse the repository at this point in the history
closes #1291
  • Loading branch information
jasonkuhrt committed Dec 23, 2024
1 parent fc8e9a1 commit 3a17b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/prelude.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export const createDeferred = <$T>(options?: { strict?: boolean }): Deferred<$T>
}

export const debug = (...args: any[]) => {
if (process.env[`DEBUG`]) {
if (globalThis.process?.env?.['DEBUG']) {
console.log(...args)
}
}
Expand Down

0 comments on commit 3a17b33

Please sign in to comment.