How to convert ammo.js to es6 module?

OK!

I found need one more step: delete this.Ammo=b; in ammo.js, otherwise will cause an error.
Seems to work fine:

demo

code

3 Likes