cannon-es icon indicating copy to clipboard operation
cannon-es copied to clipboard

add support for amd

Open gonpombo8 opened this issue 2 years ago • 2 comments

I want to use this lib at Decentraland SDK scenes instead of the cannon.js that's not longer maintained. But in order to do that all the external libraries need to be AMD modules. (It's the only way that will work at Decentraland, since the build only supports amd modules) https://github.com/decentraland/js-sdk-toolchain/blob/main/packages/%40dcl/amd/src/amd.ts Currently there are bunch of scenes created by the community that uses cannon.js such as: https://github.com/decentraland-scenes/inflatable-punch-bag, https://github.com/decentraland-scenes/tin-can-alley, https://github.com/decentraland-scenes/cannon-example-scene, https://github.com/decentraland-scenes/cannon-car-example-scene, etc. Will be great if we can add support for amd so we can start using it. Thanks in advance, let me know if there's something that's not clear. :)

gonpombo8 avatar Mar 14 '22 17:03 gonpombo8

Wouldn't most of the rollup plugins for ESM and CJS also need to be used in the AMD build?

codynova avatar Mar 17 '22 19:03 codynova

Wouldn't most of the rollup plugins for ESM and CJS also need to be used in the AMD build?

Sorry i didn't get it. What do u mean ?

gonpombo8 avatar Mar 28 '22 18:03 gonpombo8