[Gradle, JS] Fix order of free compiler args assigning
This commit is contained in:
+1
-1
@@ -55,7 +55,6 @@ open class KotlinJsIrLink : Kotlin2JsCompile() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun setupCompilerArgs(args: K2JSCompilerArguments, defaultsOnly: Boolean, ignoreClasspathResolutionErrors: Boolean) {
|
override fun setupCompilerArgs(args: K2JSCompilerArguments, defaultsOnly: Boolean, ignoreClasspathResolutionErrors: Boolean) {
|
||||||
super.setupCompilerArgs(args, defaultsOnly, ignoreClasspathResolutionErrors)
|
|
||||||
when (type) {
|
when (type) {
|
||||||
PRODUCTION -> {
|
PRODUCTION -> {
|
||||||
kotlinOptions.configureOptions(ENABLE_DCE, GENERATE_D_TS)
|
kotlinOptions.configureOptions(ENABLE_DCE, GENERATE_D_TS)
|
||||||
@@ -64,6 +63,7 @@ open class KotlinJsIrLink : Kotlin2JsCompile() {
|
|||||||
kotlinOptions.configureOptions(GENERATE_D_TS)
|
kotlinOptions.configureOptions(GENERATE_D_TS)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
super.setupCompilerArgs(args, defaultsOnly, ignoreClasspathResolutionErrors)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun KotlinJsOptions.configureOptions(vararg additionalCompilerArgs: String) {
|
private fun KotlinJsOptions.configureOptions(vararg additionalCompilerArgs: String) {
|
||||||
|
|||||||
Reference in New Issue
Block a user