[Gradle, JS] Fix for produceExecutable in Groovy build script
This commit is contained in:
+10
-1
@@ -212,7 +212,16 @@ abstract class GradleKotlinJSFrameworkSupportProvider(
|
|||||||
) {
|
) {
|
||||||
super.addSupport(buildScriptData, module, sdk, specifyPluginVersionIfNeeded, explicitPluginVersion)
|
super.addSupport(buildScriptData, module, sdk, specifyPluginVersionIfNeeded, explicitPluginVersion)
|
||||||
|
|
||||||
buildScriptData.addOther("kotlin.target.$jsSubTargetName { }")
|
buildScriptData.addOther(
|
||||||
|
"""
|
||||||
|
kotlin {
|
||||||
|
target {
|
||||||
|
$jsSubTargetName { }
|
||||||
|
produceExecutable()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
""".trimIndent()
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getPluginId() = KotlinJsGradleModuleConfigurator.KOTLIN_JS
|
override fun getPluginId() = KotlinJsGradleModuleConfigurator.KOTLIN_JS
|
||||||
|
|||||||
Reference in New Issue
Block a user