[Gradle, JS] binaries executable for legacy by default
^KT-40320 fixed
This commit is contained in:
+6
@@ -202,6 +202,12 @@ internal class PropertiesProvider private constructor(private val project: Proje
|
|||||||
val jsCompiler: KotlinJsCompilerType
|
val jsCompiler: KotlinJsCompilerType
|
||||||
get() = property(jsCompilerProperty)?.let { KotlinJsCompilerType.byArgumentOrNull(it) } ?: KotlinJsCompilerType.LEGACY
|
get() = property(jsCompilerProperty)?.let { KotlinJsCompilerType.byArgumentOrNull(it) } ?: KotlinJsCompilerType.LEGACY
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use Kotlin/JS backend compiler type
|
||||||
|
*/
|
||||||
|
val jsLegacyExecutableExplicitly: Boolean
|
||||||
|
get() = booleanProperty("kotlin.js.legacy.executable.explicitly") ?: false
|
||||||
|
|
||||||
val stdlibDefaultDependency: Boolean
|
val stdlibDefaultDependency: Boolean
|
||||||
get() = booleanProperty("kotlin.stdlib.default.dependency") ?: true
|
get() = booleanProperty("kotlin.stdlib.default.dependency") ?: true
|
||||||
|
|
||||||
|
|||||||
+9
@@ -136,6 +136,10 @@ constructor(
|
|||||||
project.objects.newInstance(KotlinBrowserJs::class.java, this).also {
|
project.objects.newInstance(KotlinBrowserJs::class.java, this).also {
|
||||||
it.configure()
|
it.configure()
|
||||||
|
|
||||||
|
if (!PropertiesProvider(project).jsLegacyExecutableExplicitly) {
|
||||||
|
binaries.executable()
|
||||||
|
}
|
||||||
|
|
||||||
browserConfiguredHandlers.forEach { handler ->
|
browserConfiguredHandlers.forEach { handler ->
|
||||||
handler(it)
|
handler(it)
|
||||||
}
|
}
|
||||||
@@ -158,6 +162,11 @@ constructor(
|
|||||||
private val nodejsLazyDelegate = lazy {
|
private val nodejsLazyDelegate = lazy {
|
||||||
project.objects.newInstance(KotlinNodeJs::class.java, this).also {
|
project.objects.newInstance(KotlinNodeJs::class.java, this).also {
|
||||||
it.configure()
|
it.configure()
|
||||||
|
|
||||||
|
if (!PropertiesProvider(project).jsLegacyExecutableExplicitly) {
|
||||||
|
binaries.executable()
|
||||||
|
}
|
||||||
|
|
||||||
nodejsConfiguredHandlers.forEach { handler ->
|
nodejsConfiguredHandlers.forEach { handler ->
|
||||||
handler(it)
|
handler(it)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user