[Gradle, JS] Remove duplicate of reporting js compiler statistic

This commit is contained in:
Ilya Goncharov
2020-07-03 14:40:03 +03:00
parent 974dfbc9ab
commit a4ad3d88c6
@@ -144,20 +144,17 @@ open class KotlinJsProjectExtension :
KotlinJsCompilerType.LEGACY -> legacyPreset
.also {
it.irPreset = null
KotlinBuildStatsService.getInstance()?.report(StringMetrics.JS_COMPILER_MODE, "legacy")
}
.createTarget("js")
KotlinJsCompilerType.IR -> irPreset
.also {
it.mixedMode = false
KotlinBuildStatsService.getInstance()?.report(StringMetrics.JS_COMPILER_MODE, "ir")
}
.createTarget("js")
KotlinJsCompilerType.BOTH -> legacyPreset
.also {
irPreset.mixedMode = true
it.irPreset = irPreset
KotlinBuildStatsService.getInstance()?.report(StringMetrics.JS_COMPILER_MODE, "both")
}
.createTarget(
lowerCamelCaseName(