-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Gradle, JS] Fix JS export names before cross module refs
^KT-60852 fixed
- Loading branch information
1 parent
4eb7ed6
commit 084479f
Showing
5 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...ration-tests/src/test/resources/testProject/kotlin-js-compose-dependency/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
plugins { | ||
id("org.jetbrains.kotlin.multiplatform") | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
|
||
kotlin { | ||
js { | ||
binaries.executable() | ||
nodejs { | ||
} | ||
} | ||
sourceSets { | ||
val commonMain by getting { | ||
dependencies { | ||
implementation("org.jetbrains.compose.runtime:runtime:1.4.3") // commenting this out and uncommenting in jsMain fixes the issue | ||
} | ||
} | ||
val jsMain by getting { | ||
dependencies { | ||
implementation("org.jetbrains.compose.html:html-core:1.4.3") | ||
} | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...ation-tests/src/test/resources/testProject/kotlin-js-compose-dependency/gradle.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
kotlin.js.compiler=ir |
12 changes: 12 additions & 0 deletions
12
...sts/src/test/resources/testProject/kotlin-js-compose-dependency/src/jsMain/kotlin/Base.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. | ||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. | ||
*/ | ||
|
||
import org.jetbrains.compose.web.internal.runtime.ComposeWebInternalApi | ||
import org.jetbrains.compose.web.internal.runtime.DomApplier | ||
|
||
@OptIn(ComposeWebInternalApi::class) | ||
fun main() { | ||
DomApplier::class.js | ||
} |