Skip to content

A question about your project structure #157

Answered by GordonSmith
am2222 asked this question in Q&A
Discussion options

You must be logged in to vote

Its a small bit convoluted - but some general comments:

  • Depending on your wasm capabilities, you may need to compile twice:
    • Once for NodeJS
    • Once for Browser
  • In my case my browser version will work with NodeJS, but the emscripten loader diffs were annoying me so I:
    • Compile the wasm
    • Compress it with zstd
    • Encode it to Base91
    • Embed it into a JavaScript wrapper which decodes and expands it into memory, which can then be referenced directly in the emscripten loader code (and is compatible with NodeJS and Browser)

hths

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by am2222
Comment options

You must be logged in to vote
3 replies
@GordonSmith
Comment options

@am2222
Comment options

@GordonSmith
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #156 on April 03, 2023 14:49.