The kotlin/wasm-javascript interop is still being developed. And so is the jsinterop tool (the kotlin/wasm counterpart of cinterop tool). Until these are ready there's no gradle support for them. So the build.sh shell script is the way to go for now.