Skip to content

Commit

Permalink
CommonJS support (Browserify, stitch, etc...)
Browse files Browse the repository at this point in the history
Export the module API!
  • Loading branch information
Eric Elliott committed Nov 20, 2012
1 parent 368f12a commit 5a03e3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lightningjs-bootstrap.js
Expand Up @@ -218,4 +218,7 @@ window.lightningjs || (function(window, parentLightningjs){
})
}

})(window, window.parent.lightningjs);
if (module && module.exports) {
module.exports = innerLightningjs;
}
})(window, window.parent.lightningjs);

0 comments on commit 5a03e3a

Please sign in to comment.