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

Combine .wasm and .js files #250

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

mainnet-pat
Copy link
Contributor

  • Compile wasms into single file
  • Use postprocessing to compress the base64 encoded wasms
  • Add new way to load web worker

The latter is especially useful in browsers. Place the following line

LibraryUtils.setWorkerLoader(() => new Worker(new URL("monero-ts/dist/monero_web_worker.js", import.meta.url)));

before interacting with any code which relies on webworker.

Resolves #248

@woodser woodser mentioned this pull request Sep 5, 2024
mainnet-pat and others added 2 commits September 5, 2024 17:26
Use postprocessing to compress the base64 encoded wasms
Add new way to load web worker
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.

Combine .wasm and .js files [3 XMR]
2 participants