Marc
09/08/2026, 11:50 AMArtem Kobzar
09/08/2026, 12:14 PMMarc
09/08/2026, 12:25 PMArtem Kobzar
09/08/2026, 1:24 PMMarc
09/08/2026, 1:24 PMEdoardo Luppi
09/09/2026, 7:59 AMwhole-program granularity workaround this one?Marc
09/09/2026, 8:43 AMwhole-program is the only useable setting anyway, right? As described in KT-65695, any finer granularity will result in all standard library and dependency symbols being unavailable at runtime. Effectively my workaround is using whole-program and putting all module code in a single module. If you use multiple modules with whole-program , you will get 2 copies of the standard library and all the strict equality checks on sentinel values for suspending functions will fail (when calling suspending functions across modules). If you use any other granularity, my code doesn't even work because it will be unable to resolve references to KtList or whatever at runtime.Edoardo Luppi
09/09/2026, 8:50 AMwhole-program granularity.Marc
09/09/2026, 8:53 AMEdoardo Luppi
09/09/2026, 8:55 AMwhole-program will always generate less JS code.Edoardo Luppi
09/09/2026, 9:06 AMper-file reproduces 1:1 how you write your Kotlin code, which is pretty cool. That doesn't mean it yields size improvements. It's 99% project-dependent.Edoardo Luppi
09/09/2026, 9:08 AMMarc
09/09/2026, 10:52 AMturansky
09/09/2026, 12:22 PMper-file)Marc
09/09/2026, 2:57 PM