Andrew Adams
01/15/2021, 8:07 AMkotlin {
jvm {
withJava()
}
js {
browser()
}
sourceSets {
val commonMain by getting {
dependencies {
implementation(project(":core"))
implementation(kotlin("stdlib-common"))
}
}
val jsMain by getting {
dependencies { implementation("org.jetbrains:kotlin-react:16.13.1-pre.110-kotlin-1.4.0")
implementation("org.jetbrains:kotlin-react-dom:16.13.1-pre.110-kotlin-1.4.0")
implementation(npm("react", "16.13.1"))
implementation(npm("react-dom", "16.13.1"))
}
}
val jvmMain by getting {
dependencies {
...
}
}
}
}