@sebavan quoted: you need CANNON defined on the window, so either you place it in your html from a cdn or you need before creating the plugin something alongside:
window.CANNON = require(‘cannon’)
“window.CANNON = require(‘cannon’);”, if this goes at the top of the js file using the plugin, do i need to install cannon outside of the CannonJSPlugin used in the @BABYLON/core? the original?
schteppe/cannonjs