Closed voydz closed 7 years ago
@liabru came up with a PR #2. Would appreciate if you take a moment to review. Thank you for your hard work on this!
Should be fixed as of 0.1.6
please try it out!
Besides matter-js telling me he loaded matter-js: ✅ matter-attractors@0.1.4
in console, I can confirm that everything runs perfect now! 👍
Great, since you're in node you might want to set Matter.Common.logLevel = 0;
to prevent any messages.
Hi there,
I was playing around with matter and I am very impressed. So first of all, a big thank you for this.
So I tried to use the matter-attractor plugin in a webpack context. Using something like this:
But webpack is throwing an error at me:
So thats a little strange, since the Matter dependency is called
matter-js
. I checked the source and saw that under thebuild/
directory there are some calls torequire('Matter')
. I decided to not mess around with that and as theindex.js
is usingrequire('matter-js')
my current workaround is something ugly like this:And its working just fine.
Hope you can fix the issue soon. Thanks in advance. :)