Hello. I managed to configure multiplatform project with JVM and JS targets with React but I can’t get it to update frontend on hot reload. When I make a change to kotlin sources I see that there is a signal emitted to the browser and the page is being refreshed, but there are no changes to the content. I tried to use --continuous
option for jsRun
task but it’s unknown for Gradle. I was following the guide here: https://kotlinlang.org/docs/reference/js-project-setup.html#configuring-run-task but it’s for Kotlin/JS projects, not for multiplatform projects and it seems that jsRun
doesn’t work like run
task from Kotlin/JS. I guess webpack is running fine with hot reloading and it’s watching my kotlin sources, but the sources are not compiled each time I make a change. How can I configure my project so that changes to the source are reflected on hot reloading?
The project is available here: https://github.com/Mesayah/kstore