Closed mikewesthad closed 3 years ago
Weird, if I import from:
import PhaserMatterCollisionPlugin from "phaser-matter-collision-plugin/src/index";
It works fine. Seems like Parcel is having trouble parsing the bundled JS for some reason.
Hm, and it works fine with:
import PhaserMatterCollisionPlugin from "phaser-matter-collision-plugin";
If I configure parcel to not use source maps:
parcel src/index.html --no-source-maps
Well, this looks like an issue in Parcel itself,
What a headache... Closing this issue, there are two options:
parcel src/index.html --no-source-maps
.For reference, updated this codesandbox to demo how to use Parcel 2
From @MEJSIK in issue #3: