jeran
11/23/2022, 11:20 PMbrowser()
target and produces a binaries.executable()
. whereas I’m looking to use nodejs()
and binaries.library()
. part of the set up of the former is including a <script src="skiko.js"></script>
in the index.html. from what i can tell, this script is responsible for producing an onWasmReady()
function and probably goes about loading the skiko.wasm file.
but if i’m packaging a node module, i don’t want the outside app (a react app in our case) to know anything about the internals of this node module, so I don’t want it to be responsible for loading skiko.js
, instead i’d rather the node module i’m building in kotlin/js take care of that.
does anyone know how i might accomplish this?jeran
11/23/2022, 11:21 PMskiko-kjs.js
is created in the build step. does anyone know what this is?Oleksandr Karpovich [JB]
11/24/2022, 6:53 AMjeran
11/24/2022, 5:02 PMjsNodeProductionLibraryDistribution
it’s included in build/productionLibrary
). maybe that’s an oversight then?
I see what you’re saying about merging, that’s an interesting idea, will look into it. thank you