Skip to content

Commit 7cac28a

Browse files
committed
rollback change to ES entrypoint, because Rollup didn't understand that it needed to locate the asset and include in output.
1 parent 926b9a4 commit 7cac28a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

box2d-wasm/dist/es/entry.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export default async (...args) => {
2222
/** @type {{ 'default': import('box2d-wasm') }} */
2323
const Box2DModule = await (
2424
hasSIMD
25-
? import(new URL('Box2D.simd.js', import.meta.url))
26-
: import(new URL('Box2D.js', import.meta.url))
25+
? import('./Box2D.simd.js')
26+
: import('./Box2D.js')
2727
);
2828
const { 'default': Box2DFactory } = Box2DModule;
2929
// awaiting gives us a better stack trace (at the cost of an extra microtask)

0 commit comments

Comments
 (0)