From c073263fca6d73dab10805a5826d873ed223ae92 Mon Sep 17 00:00:00 2001 From: Oleksandr Karpovich Date: Tue, 21 Nov 2023 17:35:21 +0100 Subject: [PATCH] Disable decoys generation for k/js targets --- .../jetbrains/compose/ComposeCompilerKotlinSupportPlugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposeCompilerKotlinSupportPlugin.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposeCompilerKotlinSupportPlugin.kt index 72cf5c78b2..4022826bfc 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposeCompilerKotlinSupportPlugin.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposeCompilerKotlinSupportPlugin.kt @@ -92,7 +92,7 @@ class ComposeCompilerKotlinSupportPlugin : KotlinCompilerPluginSupportPlugin { } private val platformPluginOptions = mapOf( - KotlinPlatformType.js to options("generateDecoys" to "true") + KotlinPlatformType.js to options("generateDecoys" to "false") ) private fun options(vararg options: Pair): List = @@ -108,4 +108,4 @@ WARNING: Usage of the Custom Compose Compiler plugin ('$currentCompilerPluginGro with non-JVM targets (Kotlin/Native, Kotlin/JS, Kotlin/WASM) is not supported. For more information, please visit: $COMPOSE_COMPILER_COMPATIBILITY_LINK """.trimMargin() -} \ No newline at end of file +}