are there clear guidelines on what should go into ...
# javascript
b
are there clear guidelines on what should go into webMain and what into jsMain? it looks like I can access the window object just fine in webMain and the js() function for inline js also seems to work (maybe because I don't yet build for wasm yet?)
✅ 1
a
So, with the
window
, if you use
kotlinx-browser
dependency, there should be no problems even after adding Wasm, however with the
js
function there should be.
webMain
is as strict as
wasmJsMain
, so if there are limitations by the Wasm target - there will be the same limitation inside of the
webMain
.
b
errors will only show up when I start to add the wasm target then, correct?
a
Yep, the same as with
commonMain
, unfortunately(
b
thank you
🙏 1