I currently observe a strange behaviour when I cre...
# compose-web
m
I currently observe a strange behaviour when I create a distribution via
wasmJsBrowserDistribution
. Each time when I create a new distribution an additional
.wasm
file gets added to the distribution. See screen-shot. I am talking about the ones with 3.7 MB. After each real build (after a code change) an additional one is added. The previous ones get updated time stamps, which is also strange. This is a bug, right?
3
👍 1
👀 1
r
Same issue
m
Even worse, when I manually clear the output folder all the previous
.wasm
files are re-created after the next build.
f
I’ve noticed the same thing 🤔
But if I do a
gradle clean
, it helps; Went from 9 wasm-files to 2.
👌 2
Scherm­afbeelding 2024-12-13 om 12.25.25.png
m
But having to do a gradle clean before each build slows down things quite a bit 🤨.
👌 2
Ok, I will report it (after lunch 😉).
thank you color 2
o
thank you for reporting! Looks like the problem started with kotlin 2.1.0. No such issue with 2.0.21 I asked my colleague to take a look
thank you color 1
r
I just want to add that I'm using Kotlin 2.1.0 with Compose Multiplatform 1.8.0-alpha01 (not compose-web) but I don't have this problem - only one wasm file is created for me.
👍 1
m