[Gradle, JS] Null library and libraryTarget when they are null

^KT-43842 fixed
This commit is contained in:
Ilya Goncharov
2020-12-09 12:26:01 +03:00
parent d4233f3f0e
commit ff52a3f867
@@ -302,8 +302,8 @@ data class KotlinWebpackConfig(
? ${outputFileName!!.jsQuoted()}
: ${multiEntryOutput.jsQuoted()};
},
library: "${output!!.library}",
libraryTarget: "${output!!.libraryTarget}",
${output!!.library?.let { "library: ${it.jsQuoted()}," } ?: ""}
${output!!.libraryTarget?.let { "libraryTarget: ${it.jsQuoted()}," } ?: ""}
globalObject: "${output!!.globalObject}"
};