Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load using imports #34

Open
webciter opened this issue Aug 27, 2021 · 2 comments
Open

Unable to load using imports #34

webciter opened this issue Aug 27, 2021 · 2 comments

Comments

@webciter
Copy link

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:

  • ./node_modules/babel-loader/lib/index.js
    You may need an additional loader to handle the result of these loaders.
    | var Box2D = function () {

var _scriptDir = import.meta.url;
| return function (Box2D) {
| Box2D = Box2D || {};

@Birch-san
Copy link
Owner

Webpack config is documented here:.
#26

@Birch-san
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants