Open schulzch opened 11 years ago
I fiddled around a bit and came up with the following solution:
/*
* https://github.com/kripken/box2d.js
*
* box2d.js is zlib licensed, just like Box2D.
*/
// ... COMPILED ONE LINER GOES HERE ...
module.exports = this.Box2D;
Edit: Adding --globals Module
to mocha's command line seems cleaner for now.
There are some issues with using box2d.js in a Node.js environment:
Error: global leak detected: Module
The fixes are easy, but I have no idea where to put them:
Module;
withvar Module;
somewheremodule.exports = Module;
at the end of the fileCheers, Chris