export as a common js module

Useful for people wanting to use browserify/webpack
This commit is contained in:
Conrad Irwin 2015-09-05 14:11:49 -07:00
parent bb2aac32e0
commit d3b5e999c8

View File

@ -1104,4 +1104,9 @@
//add options for alternative namespace //add options for alternative namespace
window.C2S = ctx; window.C2S = ctx;
// CommonJS/Browserify
if (typeof module === "object" && typeof module.exports === "object") {
module.exports = ctx;
}
}()); }());