[Gradle, JS] Use jsOutputName as module name

This commit is contained in:
Ilya Goncharov
2021-04-28 17:26:17 +03:00
committed by TeamCityServer
parent eaf25b517d
commit 4d7f7fc50f
@@ -208,8 +208,7 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
outputKlibPath = outputFile.path,
nopack = arguments.irProduceKlibDir,
jsOutputName = moduleName
.replace(":", "-")
.replace(".", "-"),
.substringAfterLast(":"),
)
}