Vampire
01/31/2023, 4:00 PMkotlin.js.ir.output.granularity
whole-project
vs. per-module
?turansky
01/31/2023, 4:34 PMwhole-program
1. More optimal bundle
2. Ready bundle if you don’t use additional NPM libraries
3. Transparent possibility to use other Kotlin/JS subprojects in dynamic imports
4. Slower build?
per-module
1. Faster build?Vampire
01/31/2023, 11:34 PMwhole-program
?
Or are you a speed junkie? 😄
And under the premise that I send it through ncc and thus webpack which should neglect 1.,
I use other NPM libs which neglects 2.,
and I don't split the project into multiple projects (it's anyway just 2 classes) which neglects 3.
Then still? 🙂turansky
02/01/2023, 1:32 AMThen still? 🙂Yes
Vampire
02/01/2023, 1:32 AMVampire
02/02/2023, 4:47 PMturansky
02/02/2023, 5:37 PMwhole-program
is transparent - it is what I understand
All Kotlin code in one bundle for better DCE!turansky
02/02/2023, 5:38 PMturansky
02/02/2023, 5:41 PMVampire
02/02/2023, 5:53 PM