wasmJsMain
abstract val NamedDomainObjectContainer<KotlinSourceSet>.wasmJsMain: NamedDomainObjectProvider<KotlinSourceSet>
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
}
}
}
Content copied to clipboard
Since
2.0.20