Skip to content

Commit dc1f70c

Browse files
committed
Cool
1 parent f9ebf0c commit dc1f70c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

moo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
this.reset()
274274
}
275275

276-
if (typeof require !== 'undefined') {
276+
if (typeof module !== 'undefined' && module.exports) {
277277
var Transform = require('stream').Transform
278278

279279
Lexer.prototype.stream = function(state) {

0 commit comments

Comments
 (0)