Skip to content

Commit b7edc73

Browse files
committed
Merge pull request #6 from dilvie/patch-1
CommonJS support (Browserify, stitch, etc...)
2 parents 368f12a + 0a6d8f5 commit b7edc73

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: lightningjs-bootstrap.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -218,4 +218,7 @@ window.lightningjs || (function(window, parentLightningjs){
218218
})
219219
}
220220

221-
})(window, window.parent.lightningjs);
221+
if (typeof module !== "undefined" && module.exports) {
222+
module.exports = innerLightningjs;
223+
}
224+
})(window, window.parent.lightningjs);

0 commit comments

Comments
 (0)