diff --git a/dist/brewser.js b/dist/brewser.js
index <HASH>..<HASH> 100644
--- a/dist/brewser.js
+++ b/dist/brewser.js
@@ -2,7 +2,7 @@
 
     'use strict';
 
-    if(window.BREWSER) {
+    if(global.BREWSER || typeof window === 'undefined') {
         return;
     }
support for isomorphic commonjs import

ran into this issue when ES6-importing this node module during meteor <I> beta testing