I learned a lot about calling Kotlin/JS from JavaS...
# javascript
c
I learned a lot about calling Kotlin/JS from JavaScript while implementing this same for using KFSM. https://github.com/open-jumpco/kfsm-webjs I would prefer Kotlin/JS all the way but that isn't the reality because there are so many JS tools involved in building JavaScript for the browsers. Here is my Kotlin/JS version for comparison. https://github.com/open-jumpco/kfsm-web
g
All those tools are taken care of for you with the Kotlin/Js Gradle plugin
Unless you need SASS or something like that, then you need to configure webpack
which is definitely still possible with the kotlin/js gradle plugin, its just the documentation for all this is still not there yet. Its improved over the last year, but it needs a dedicated group to really get it up to speed
c
If love how far it has come and being able to do more without leaving Kotlin/JS, the typescript tooling is also getting better. Soon we'll have WebAssembly and some powerful frameworks will follow.