[Gradle, JS] Add dependency on dce task
^KT-32273 fixed ^KT-36451 fixed ^KT-37258 fixed
This commit is contained in:
+2
-2
@@ -225,8 +225,6 @@ open class KotlinBrowserJs @Inject constructor(target: KotlinJsTarget) :
|
||||
contentBase = listOf(compilation.output.resourcesDir.canonicalPath)
|
||||
)
|
||||
|
||||
outputs.upToDateWhen { false }
|
||||
|
||||
val actualDceTaskProvider = when (mode) {
|
||||
KotlinJsBinaryMode.PRODUCTION -> dceTaskProvider
|
||||
KotlinJsBinaryMode.DEVELOPMENT -> devDceTaskProvider
|
||||
@@ -239,6 +237,8 @@ open class KotlinBrowserJs @Inject constructor(target: KotlinJsTarget) :
|
||||
}
|
||||
)
|
||||
|
||||
dependsOn(actualDceTaskProvider)
|
||||
|
||||
resolveFromModulesFirst = true
|
||||
|
||||
commonRunConfigurations.forEach { configure ->
|
||||
|
||||
Reference in New Issue
Block a user