Skip to content

Commit

Permalink
Fix in gradle for JS IR in case it doesn't exist (Kotlin#1912)
Browse files Browse the repository at this point in the history
  • Loading branch information
LepilkinaElena committed Apr 13, 2020
1 parent d75d02a commit 5eaf83c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gradle/compile-js-multiplatform.gradle
Expand Up @@ -9,9 +9,9 @@ kotlin {
fromPreset(presets.js, 'js') {
// Enable built-in test runner only for IR target.
// These runners don't support changing js module name change.
if (js.hasProperty("irTarget")) {
if (js.hasProperty("irTarget") && irTarget != null) {
irTarget.nodejs()
irTarget?.compilations['main']?.dependencies {
irTarget.compilations['main']?.dependencies {
api "org.jetbrains.kotlinx:atomicfu-js:$atomicfu_version"
}
}
Expand Down

0 comments on commit 5eaf83c

Please sign in to comment.