Hey all, while working with Kotlin/JS, I have obse...
# javascript
s
Hey all, while working with Kotlin/JS, I have observed that every minor change takes about 22-25 seconds to be updated on the browser whereas in JS/TS, the same hot-reload is done within a few seconds (~2-5 seconds), is there a way to speed up this process on Kotlin/JS?
v
You probably need to check what needs the 24s, for example using a build
--scan
. If for example the configuration of the project needs signifiant time, 3.1 can greatly improve on that if your build is compatible with the configuration cache and you enable it. (you can of course already do that now, but with 3.1 it becomes officially stable hopefully)
If for example the Kotlin compilation needs so long, you can hardly do much except for hoping for improvements in later Kotlin versions, or maybe IR vs. Legacy makes a difference. 🤷
t
Which libraries do you use?
s
I have only just started out this project @turansky
I know that one of the culprits could be the
mui-icons
package as it used to worsen the hot-reloading times on JS/TS as well. To give you a rough estimate, if before
mui-icons
the reload used to take 1-2 seconds, after mui-icons, it started taking 4-5 seconds. So maybe that is at play here as well.
Update: I have observed that if I make changes that are related to the mui components, they do take about 24 seconds, but if I make changes in some other files that are not related to mui or mui-icons, those changes are done almost instantaneously (i.e. ~1-2 seconds).