[Gradle, JS] Use mjs extension for wasm in webpack task

This commit is contained in:
Ilya Goncharov
2023-01-06 11:16:58 +01:00
committed by teamcity
parent 5320fbeb6e
commit f1aedc74da
@@ -119,7 +119,7 @@ constructor(
@get:Internal
val entry: Provider<RegularFile>
get() = inputFilesDirectory.map {
it.file(entryModuleName.get() + ".js")
it.file(entryModuleName.get() + if (platformType == KotlinPlatformType.wasm) ".mjs" else ".js")
}
init {