hey guys, i have some libraries i’m using in `comm...
# multiplatform
h
hey guys, i have some libraries i’m using in
commonMain
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?
d
You'll want to create a custom source set hierarchy for this; create a
nonWasmMain
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
🙌 1
thank you color 1