Skip to content

Commit a597071

Browse files
issue: box2d library is not able to be used by node.js require system without adding the following line:
module.exports = Box2D; this allows the library to be used in both server and client without major modification
1 parent 3bb9fcd commit a597071

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

box2d/box2d.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10876,3 +10876,5 @@ Box2D.postDefs = [];
1087610876
var i;
1087710877
for (i = 0; i < Box2D.postDefs.length; ++i) Box2D.postDefs[i]();
1087810878
delete Box2D.postDefs;
10879+
10880+
module.exports = Box2D;

0 commit comments

Comments
 (0)