You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use require for poly-decomp. But do not include poly-decomp in the build for Matter.js. Ensure that this also works in a browser, where poly-decomp is required separately.
The text was updated successfully, but these errors were encountered:
import decomp from 'poly-decomp';
import { Engine, World, Bodies, Svg, Vertices } from 'matter-js';
window.decomp = decomp;
(By the way: Using webpack gives a warning This seems to be a pre-built javascript file. (build/matter.js 32:479-486). I don't know if this can make problems in Browserify/webpack environments, because there seems to be a require fallback.)
Use require for
poly-decomp
. But do not includepoly-decomp
in the build for Matter.js. Ensure that this also works in a browser, wherepoly-decomp
is required separately.The text was updated successfully, but these errors were encountered: