How to generate js file for each class?


#1

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 !


#2

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


#3

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.