Hello, i am using kotlin mpp in my app and i am making a client for my server for jvm, native and js.
I am using ktor for the client(using websocket, this doesn't work for native right now). I managed to make it work and test it, but now i want to export it as js for people to use it as a library but i don't really know how. For now i added nodejs() and it builds a node project but i don't really know how to use it.
I installed yarn and the workspaces are ok, then i made an index.js and required my modules and exported them in a key value object so i can use yarn link.
Is there another way to do this? This is the only way i was able to make it work.
PS: I have no autocompletion so i will migrate to 1.4-M1 for it.