Timo Drick
03/01/2026, 11:10 PMWinson Chiu
03/02/2026, 12:46 AMTimo Drick
03/02/2026, 8:01 AMKonstantin Tskhovrebov
03/02/2026, 9:40 AMWinson Chiu
03/02/2026, 10:19 AMKonstantin Tskhovrebov
03/02/2026, 10:39 AMTimo Drick
03/26/2026, 11:45 AMwasmJs {
outputModuleName = "worker-example"
browser {
binaries.executable()
}
}
But one problem is that inside a Web Worker it is not allowed to access document and other dom elements.
So i needed to use a hack to prevent the compiler from generating this.
Not sure if there is already an issue filed for this. Or if there are plans to maybe support WebWorker context out of the box for wasmJs