I'm struggling to get webpack working with a set of WebAssembly files compiled using wasm-bindgen.
Even if this could be just an issue with webpack, it made me realise I don't fully grasp the differences between these quirky WebAssembly tools.
I'm struggling to get webpack working with a set of WebAssembly files compiled using wasm-bindgen.
Even if this could be just an issue with webpack, it made me realise I don't fully grasp the differences between these quirky WebAssembly tools.
Copyright © 2021 Jogjafile Inc.
This doesn't make sense. You are completely mixing everything, and the issue you linked shouldn't be applied to your problem. There is no relationships between wasm-bindgen and Emscripten.
Firstly, asm.js was a first effort to run C/C++ (or Rust) code in a browser and is considered the precursor to WebAssembly. It is a subset of JS that C/C++ code can be compiled to. An asm.js-compiled C/C++ code can run in any browser because it is JS and will be more performant in many browsers because it is a highly-optimized subset of JS. However, asm.js is typically less performant than WebAssembly.
For the others, in short: