I'm trying Kotlin `2.2.0-Beta1`, but `wasmJsBrowse...
# webassembly
r
I'm trying Kotlin
2.2.0-Beta1
, but
wasmJsBrowserDistribution
task doesn't seem to work at all. The
build/dist/wasmJs/productionExecutable
directory contains only my
index.html
file. No .js and no .wasm files. I think webpack task is not executed at all.
😞 1
build/kotlin-webpack/wasmJs/productionExecutable
is empty
The wasm target seems to compile correctly, because
build/compileSync/wasmJs/main/productionExecutable/optimized
contains both .mjs and .wasm files.
Running
wasmJsBrowserProductionWebpack
directly doesn't execute any webpack task as well
It's not a general problem. It works with a simple wasmJs project, when rootProject == project. But it doesn't work when building an app in a subproject (in my case located in /examples/appdir/)
Sometimes a good night's sleep makes wonders. Just when I wanted to fill an issue everything is working fine
¯\_(ツ)_/¯
a
Thank you for testing, and following up! KGP launches Webpack as an external process, and this recently changed to prepare for Gradle 9 KT-73142. It's possible this change is related. If you notice anything strange again, please let us know.