Hristijan
04/05/2024, 10:02 AMcommonMain
but they don’t have support for WASM yet but some other crucial ones do have, is there a way to somehow exclude some of these only in the WASM target?Darron Schall
04/05/2024, 3:34 PMnonWasmMain
source set and include your dependencies there that support everything but WASM.
See https://kotlinlang.org/docs/multiplatform-discover-project.html#source-sets and then https://kotlinlang.org/docs/multiplatform-advanced-project-structure.html for additional details (specifically, see "Declaring Custom Source Sets").
For another concrete example, take a look at the Okio source set hierarchy; it does similar things - https://github.com/square/okio/blob/master/okio/build.gradle.kts