Skip to content

Commit

Permalink
rollback change to ES entrypoint, because Rollup didn't understand th…
Browse files Browse the repository at this point in the history
…at it needed to locate the asset and include in output.
  • Loading branch information
Birch-san committed Jul 10, 2021
1 parent 926b9a4 commit 7cac28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions box2d-wasm/dist/es/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default async (...args) => {
/** @type {{ 'default': import('box2d-wasm') }} */
const Box2DModule = await (
hasSIMD
? import(new URL('Box2D.simd.js', import.meta.url))
: import(new URL('Box2D.js', import.meta.url))
? import('./Box2D.simd.js')
: import('./Box2D.js')
);
const { 'default': Box2DFactory } = Box2DModule;
// awaiting gives us a better stack trace (at the cost of an extra microtask)
Expand Down

0 comments on commit 7cac28a

Please sign in to comment.