diff --git a/gun.js b/gun.js index 7351d3aa..6c05f006 100644 --- a/gun.js +++ b/gun.js @@ -980,6 +980,9 @@ }({})); if(typeof window !== "undefined"){ window.Gun = Gun; + if(typeof module !== 'undefined' && module.exports){ + module.exports = Gun; + } } else { module.exports = Gun; }