https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
p

Petros

04/02/2024, 11:10 AM
Hi everyone, I am trying to expand my KMP project to build on web as well with wasmJs. Does anybody know how can I add the respective third party dependencies? Inside
sourceSets
->
wasmJsMain
does not seem to accept the
dependencies
block.
w

William Walker

04/02/2024, 3:18 PM
Did you apply the default target hierarchy? Do that with
applyDefaultTargetHierarchy()
, then, add the wasmJs source set via delegated field:
val wasmJs by getting
wasmJs.dependencies {
implementation(your_lib_here)
}