wasmJsMain

Static accessor for the main Kotlin Source Set of wasmJs target. Declare wasmJs target to access this source set. If wasmJs target wasn't declared, accessing this source set will cause a runtime error during configuration time.

Sample:

kotlin {
wasmJs() // Target is declared, wasmJsMain source set is created

sourceSets {
wasmJsMain.dependencies {
// Add wasmJsMain dependencies here
}
}
}

Since

2.0.20