kotlinx-resources icon indicating copy to clipboard operation
kotlinx-resources copied to clipboard

Add WASM support

Open StefanOltmann opened this issue 1 year ago • 11 comments

Please add support for WASM & WASI targets

StefanOltmann avatar Dec 15 '23 09:12 StefanOltmann

Vouch for this. We'd like to add wasmJs and wasmWasi as test targets.

lppedd avatar Dec 18 '23 19:12 lppedd

I'll look into it soon. 👍

goncalossilva avatar Dec 19 '23 00:12 goncalossilva

Blocked on this, but I'm hoping there is a straightforward workaround (e.g., using a Canary version of Node). I've asked on Kotlin's Slack as well.

goncalossilva avatar Dec 19 '23 15:12 goncalossilva

@goncalossilva using Canary is what official Kotlin libs are doing, yup!

lppedd avatar Dec 19 '23 15:12 lppedd

Yeah, that's the way to move forward. I've rewritten ResourceNode but it appears I'll also have to rewrite ResourceBrowser if I want it shared between JS and Wasm.

goncalossilva avatar Dec 19 '23 15:12 goncalossilva

Left a couple comments in the new commits.

lppedd avatar Dec 19 '23 15:12 lppedd

@goncalossilva please update to support this feature. I really need this to enable wasm targets on our repos

iTanChi avatar May 04 '24 10:05 iTanChi

@iTanChi I'm afraid I've been travelling for work and unavailable to continue working on this, but I plan to pick it up again later this month, before the upcoming KotlinConf.

goncalossilva avatar May 06 '24 13:05 goncalossilva

Any news on this front? I'd like to see support for wasmJs to get some of my tests working.

mipastgt avatar Sep 18 '24 21:09 mipastgt

No progress on my end, I'm afraid. I haven't been able to prioritize this, as I'm not actively using WASM on any personal or work project. I still want to get around to it eventually, but of course, contributions would be most welcome.

goncalossilva avatar Sep 18 '24 22:09 goncalossilva

I am also not yet really using WASM too but I am trying to pick up the necessary pieces and see where we are :-)

mipastgt avatar Sep 18 '24 22:09 mipastgt