Skip to content

Commit

Permalink
Expose Emitter if module exists
Browse files Browse the repository at this point in the history
  • Loading branch information
julienfouilhe committed Feb 9, 2016
1 parent 4d18307 commit 61fdd20
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 61fdd20

Please sign in to comment.