Skip to content

Commit 7103e65

Browse files
LepilkinaElenarecheej
LepilkinaElena
authored andcommitted
Fix in gradle for JS IR in case it doesn't exist (Kotlin#1912)
1 parent 299d0c9 commit 7103e65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gradle/compile-js-multiplatform.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ kotlin {
99
fromPreset(presets.js, 'js') {
1010
// Enable built-in test runner only for IR target.
1111
// These runners don't support changing js module name change.
12-
if (js.hasProperty("irTarget")) {
12+
if (js.hasProperty("irTarget") && irTarget != null) {
1313
irTarget.nodejs()
14-
irTarget?.compilations['main']?.dependencies {
14+
irTarget.compilations['main']?.dependencies {
1515
api "org.jetbrains.kotlinx:atomicfu-js:$atomicfu_version"
1616
}
1717
}

0 commit comments

Comments
 (0)