[Gradle, JS] Return binaries from ir target if it exists
This commit is contained in:
+8
-5
@@ -96,11 +96,14 @@ constructor(
|
|||||||
|
|
||||||
@Deprecated("Use produceExecutable instead", ReplaceWith("produceExecutable()"))
|
@Deprecated("Use produceExecutable instead", ReplaceWith("produceExecutable()"))
|
||||||
override val binaries: KotlinJsBinaryContainer
|
override val binaries: KotlinJsBinaryContainer
|
||||||
get() = project.objects.newInstance(
|
get() {
|
||||||
KotlinJsBinaryContainer::class.java,
|
return irTarget?.binaries
|
||||||
this,
|
?: project.objects.newInstance(
|
||||||
WrapUtil.toDomainObjectSet(JsBinary::class.java)
|
KotlinJsBinaryContainer::class.java,
|
||||||
)
|
this,
|
||||||
|
WrapUtil.toDomainObjectSet(JsBinary::class.java)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
var irTarget: KotlinJsIrTarget? = null
|
var irTarget: KotlinJsIrTarget? = null
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user