diff --git a/index.js b/index.js index 1c78176..fa4faee 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,9 @@ * Expose `Emitter`. */ -module.exports = Emitter; +if (typeof module !== 'undefined') { + module.exports = Emitter; +} /** * Initialize a new `Emitter`.