export as a common js module
Useful for people wanting to use browserify/webpack
This commit is contained in:
parent
bb2aac32e0
commit
d3b5e999c8
@ -1104,4 +1104,9 @@
|
||||
//add options for alternative namespace
|
||||
window.C2S = ctx;
|
||||
|
||||
// CommonJS/Browserify
|
||||
if (typeof module === "object" && typeof module.exports === "object") {
|
||||
module.exports = ctx;
|
||||
}
|
||||
|
||||
}());
|
||||
|
Loading…
x
Reference in New Issue
Block a user