bashor
09/09/2024, 4:38 PMIlya Goncharov [JB]
09/10/2024, 10:24 AMmjs
file?
So if we will use
new URL("project.wasm", import.meta.url).href
does it help in your case?
import.meta.url
means url of current mjs
script
So if you have
• project.mjs
• project.wasm
it should be resolved correctly, am I right?Todd
09/10/2024, 5:08 PMwasmJsBrowserDistribution
is just generating a js file though. How do I generate a mjs file instead?
This is my current configuration
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class)
wasmJs {
browser { }
useEsModules()
binaries.executable()
}
Todd
09/10/2024, 5:15 PMIlya Goncharov [JB]
09/10/2024, 5:22 PMwasmJsBrowserDistribution
produces js
file, because it is webpack
output, I wrote about compiler output.
Anyway, I guess fix of issue above should help with your use case