jsMain
abstract val NamedDomainObjectContainer<KotlinSourceSet>.jsMain: NamedDomainObjectProvider<KotlinSourceSet>
Static accessor for the main Kotlin Source Set of js target. Declare js target to access this source set. If js target wasn't declared, accessing this source set will cause a runtime error during configuration time.
Sample:
kotlin {
js() // Target is declared, jsMain source set is created
sourceSets {
jsMain.dependencies {
// Add jsMain dependencies here
}
}
}
Content copied to clipboard
Since
2.0.20