https://kotlinlang.org logo
#webassembly
Title
# webassembly
j

John O'Reilly

11/04/2023, 9:36 AM
should https://github.com/JetBrains/compose-multiplatform/issues/3413 be resolved in
1.5.10-dev-wasm02
?
b

bashor

11/06/2023, 12:26 PM
cc @Oleksandr Karpovich [JB]
o

Oleksandr Karpovich [JB]

11/06/2023, 12:32 PM
Yes, it should
j

John O'Reilly

11/06/2023, 12:37 PM
hmm, maybe I'm doing something wrong then.....that config mentioned didn't seem to work
o

Oleksandr Karpovich [JB]

11/06/2023, 12:39 PM
Do you mean it doesn't affect the path? Or it crashes or doesn't compile?
j

John O'Reilly

11/06/2023, 12:40 PM
configureWebResources
wasn't available it seems for example
👀 1
o

Oleksandr Karpovich [JB]

11/06/2023, 12:43 PM
My bad! I checked that the commit is there. But I forgot that the change was implemented in jsMain source set (there is no jsWasmMain source set in the main branch yet) and I forgot to move the new API to the proper source set. I'll try to fix it this week
👍 1
j

John O'Reilly

11/06/2023, 12:45 PM
Also just to confirm....with these changes it will be possible to run both locally (using localhost) and when hosted with say additional element in path (
<https://joreilly.github.io/chip-8/>
in the example I was looking at)?
o

Oleksandr Karpovich [JB]

11/06/2023, 12:47 PM
yes, it should work like that by default after that change lands. the resources will be expected at

https://joreilly.github.io/chip-8/img.png

(for example) and for localhost

http://localhost:8080/img.png

👍 1
j

John O'Reilly

11/09/2023, 4:13 PM
@Oleksandr Karpovich [JB] I just pulled in
1.5.10-dev-wasm03
in to https://github.com/joreilly/chip-8 and looks like it's working great.....running in following https://joreilly.github.io/chip-8/
👍 1
o

Oleksandr Karpovich [JB]

11/09/2023, 4:37 PM
I just wanted to post an update here, but you were faster 🙂 Great! Good to hear!
j

John O'Reilly

11/09/2023, 4:38 PM
I get notified of changes in kotlin-wasm-examples repo and saw your PR 😃 https://github.com/Kotlin/kotlin-wasm-examples/pull/36
👍 1
5 Views