I updated <Compose Multiplatform Wizard> ! Now the...
# feed
k
I updated Compose Multiplatform Wizard ! Now there is no two different web targets (js and wasm) with a code duplication! Everything you need is webMain! Thanks to Kotlin 2.2.20(-Beta2) and Compose Multiplatform 1.9.0(-beta03)! 🔥 and more: you are able to pack a web distribution in the compatibility mode
./gradlew :composeApp:composeCompatibilityBrowserDistribution
it means that the app will be automatically run in suitable mode: old js or new wasm (convienient for old Safari support) you can see it in the action here: https://terrakok.github.io/DroidCon-Talks/ (in Firefox it runs the compose wasm, in old Safari which doesn't support some wasm features - js)
🙌🏽 1
🙌🏻 1
🙌🏾 1
K 12
🙌 12
❤️ 6
🚀 5
🔥 1
j
Can’t wait to implement this for MaterialKolor Builder. I’ve been dreading coming up with a hacky solution for handling wasm and js 😅
k
You can generate a new project and copy the config to your awesome project 😉
m
Doesn’t this mean that also all your dependencies must support both platforms (JS and wasmJs)?
k
if you need them in web source set then - yes. but there are still js and wasm source sets presented if you need a something specific.