What is the different between jsMain, wasmJsMain, ...
# compose-web
m
What is the different between jsMain, wasmJsMain, webMain?
o
jsMain
is the JavaScript-only target for Node and browsers. •
wasmJsMain
targets WebAssembly in a JS-hosted environment (Node, browsers) with access to a JS API (in contrast to Wasm/WASI where there is no JS API, but WASI instead). •
webMain
is the common target for the other two:
👍 1
m
@Oliver.O thanks for the explanation, is there an example of wrapping a js package and use it like this one https://www.npmjs.com/package/libphonenumber-js
o
There are many examples as people do this routinely, but for me it's hard to point to up-to-date cases. Maybe better ask in #C0B8L3U69.
thank you color 1