Skip to content

Commit

Permalink
Cool
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan committed Mar 17, 2017
1 parent f9ebf0c commit dc1f70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moo.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
this.reset()
}

if (typeof require !== 'undefined') {
if (typeof module !== 'undefined' && module.exports) {
var Transform = require('stream').Transform

Lexer.prototype.stream = function(state) {
Expand Down

0 comments on commit dc1f70c

Please sign in to comment.