Skip to content

Commit

Permalink
Merge pull request sindresorhus#75 from FlatIO/master
Browse files Browse the repository at this point in the history
Expose Emitter if module exists
  • Loading branch information
vendethiel committed Mar 15, 2016
2 parents 4d18307 + 61fdd20 commit 08d6393
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
* Expose `Emitter`.
*/

module.exports = Emitter;
if (typeof module !== 'undefined') {
module.exports = Emitter;
}

/**
* Initialize a new `Emitter`.
Expand Down

0 comments on commit 08d6393

Please sign in to comment.