Hello! I’m trying to reduce the size of a multiplatform library that I want to use on a web project, and even after enabling the IR compiler and divided into sub-modules it’s still too big to be used on a browser (~3MB). While doing some tests, with a clean project (with only the greeting function), I’ve noticed:
• library is smaller with kotlin 1.5.10
• adding ktor (without making any call), automatically adds the kotlinx.atomicfu to the .js output
Is there any possibility to manually exclude it?
I’m also listening for solutions on how I can reduce it’s size 🙂
Yes, yes. On that example, ktor is being used.
In order to understand where I can optimize my library, I’ve removed all ktor calls and noticed that just having the dependency it adds it automatically atomicfu to the generated .js files.
I was trying to manually remove them just to see if I can reduce it’s size.