All Questions
7 questions
1
vote
0
answers
378
views
WebAssembly module in a web worker, in Vue.js
I've been banging my head against this brick wall for 2 days now and I cannot figure it out. I'm trying to load my wasm module in a web worker in a Vue app and nothing I can find works. First, let me ...
13
votes
3
answers
18k
views
How can I make webpack embed my *.wasm for use in a web worker?
I have some rust code that compiles to web assembly using wasm-pack and wasm-bindgen. I want to call into this code from a web worklet/worker. The entire app should eventually be just one single *.js ...
2
votes
1
answer
2k
views
Import WASM into webworker synchronously using Webpack
I've been following the wasm_bindgen guides to create wasm from rust. Those work fine and I have some code that can be loaded in my main app.
That loading works sometimes, but frequently not, with my ...
2
votes
0
answers
465
views
how to correctly import js script from wasm rust
How do you let webpack know that a chunk is used inside of rust/wasm so that it doesn't get discarded.
My try:
webpack config:
module.exports: {
...
entry: {
main: './index.js',
...
12
votes
2
answers
5k
views
Is it possible to use wasm-bindgen with webpack 5?
I followed the Hello World Guide for wasm-bindgen (I am using wasm-bindgen = "0.2.72").
Unfortunately the npm packages mentioned in the guide are not really up to date. Because I would like ...
1
vote
1
answer
1k
views
What are the differences between wasm-bindgen, asm.js and Emcripten?
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 ...
3
votes
1
answer
5k
views
Rust/Wasm: Module not found: Error: Can't resolve 'env' in
I am trying to port a wrapper for this crate into wasm. My current toolchain is:
wasm-pack
webpack
wasm-bindgen
A bit more info on the build system:
In my rust crate (which is a --lib crate), I only ...