Skip to content
This repository was archived by the owner on May 27, 2022. It is now read-only.

Commit feaf4fc

Browse files
calvinmetcalfsam-github
authored andcommitted
support browserify, where require can return null
1 parent e4e1ab7 commit feaf4fc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

debuglog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var util = require('util');
22

3-
module.exports = util.debuglog || debuglog;
3+
module.exports = (util && util.debuglog) || debuglog;
44

55
var debugs = {};
66
var debugEnviron = process.env.NODE_DEBUG || '';

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@
1414
},
1515
"engines": {
1616
"node": "*"
17+
},
18+
"browser": {
19+
"util": false
1720
}
1821
}

0 commit comments

Comments
 (0)