How to generate js file for each class?

Hello ,I use kotlin to build the front-end,but I found all of the kt file are compiled
into one js file that will very big final !

Kotlin does not support file-to-file compilation. How big is your JS file? How many classes are in your project?

Thank you!
There are 58 classes in my project. And the JS file size is 1.2MB.
It will spare a long time to load the JS file when I request every page at first.