Skip to content

Conversation

@martinRenou
Copy link
Collaborator

@martinRenou martinRenou commented Nov 13, 2024

This will:

  • initialize the WASM just once
  • allow passing the wasmPath from outside (allow the webpack notation import new URL('path-to.wasm', import.meta.url);)
  • Remove tests (tests were mocking everything so we were not testing anything anyway, we can bring some back once doing actual actual testing)

@martinRenou martinRenou force-pushed the refactor_wasm_init branch 3 times, most recently from eea85ee to caf7638 Compare November 14, 2024 15:41
@martinRenou martinRenou reopened this Nov 20, 2024
@martinRenou martinRenou force-pushed the refactor_wasm_init branch 2 times, most recently from 9bf395d to 2396fbd Compare November 20, 2024 15:05
@martinRenou martinRenou marked this pull request as ready for review November 20, 2024 15:15
import untarjs from "@emscripten-forge/untarjs";
import { initUntarJS } from "@emscripten-forge/untarjs";

const untarjs = await initUntarJS();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AnastasiaSliusar note the change in the API here, this allows loading the WASM once.

@martinRenou
Copy link
Collaborator Author

Thanks for the review @AnastasiaSliusar I've applied your suggestion!

@martinRenou martinRenou merged commit 6aba817 into emscripten-forge:main Nov 20, 2024
1 check passed
@martinRenou martinRenou deleted the refactor_wasm_init branch November 20, 2024 17:04
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

Successfully merging this pull request may close these issues.

2 participants