[Gradle, JS] Turn on by default sourcemap generation for JS IR

#KT-46551 Fixed
This commit is contained in:
Zalim Bashorov
2021-07-03 00:40:57 +03:00
committed by teamcityserver
parent 8da62b56fb
commit 4c4bcb1e3e
2 changed files with 8 additions and 4 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@@ -228,5 +228,7 @@ constructor(
private fun KotlinJsOptions.configureCommonJsOptions() {
moduleKind = "commonjs"
sourceMap = true
sourceMapEmbedSources = "never"
}
}
}
@@ -1,5 +1,5 @@
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@@ -126,6 +126,8 @@ open class KotlinJsIrTargetConfigurator() :
private fun KotlinJsOptions.configureOptions() {
moduleKind = "umd"
sourceMap = true
sourceMapEmbedSources = "never"
}
override fun defineConfigurationsForTarget(target: KotlinJsIrTarget) {
@@ -146,4 +148,4 @@ open class KotlinJsIrTargetConfigurator() :
setupAsPublicConfigurationIfSupported(target)
}
}
}
}