jsMain

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
}
}
}

Since

2.0.20