Birch-san / box2d-wasm

Box2D physics engine compiled to WebAssembly. Supports TypeScript and ES modules.
265 stars 21 forks source link

Unable to load using imports #34

Open webciter opened 3 years ago

webciter commented 3 years ago

getting failed to compile

./node_modules/box2d-wasm/dist/es/Box2D.simd.js 2:25 Module parse failed: Unexpected token (2:25) File was processed with these loaders:

Birch-san commented 3 years ago

Webpack config is documented here:. https://github.com/Birch-san/box2d-wasm/issues/26

Birch-san commented 3 years ago

Actually if it's a syntax error that sounds like a different problem: parsing ES6 as CommonJS