Skip to content

Commit d23c03a

Browse files
committed
fix(debug): add isBrowser check
1 parent f6d8621 commit d23c03a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib/debug.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import isBrowser from './isBrowser'
12
let _debug
23
const noop = () => undefined
34

4-
if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test') {
5+
if (isBrowser && process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test') {
56
// Heads Up!
67
// https://github.com/visionmedia/debug/pull/331
78
//

0 commit comments

Comments
 (0)