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 a0b6e21 commit 9fb6114Copy full SHA for 9fb6114
1 file changed
lib/utils/log.ts
@@ -1,4 +1,3 @@
1
/*eslint no-console:0*/
2
-export default function log(...args: unknown[]): void {
3
- if (process.env.DRAGGABLE_DEBUG) console.log(...args);
4
-}
+const log = typeof process !== 'undefined' && process.env.DRAGGABLE_DEBUG ? console.log.bind(console) : function noop(): void {};
+export default log;
0 commit comments