Hi, Is there an official approach for loading modu...
# compose-web
g
Hi, Is there an official approach for loading modules and dependencies layzily in Kotlin/JS or WASM? Currently, the entire application is bundled into a single JS or WASM file, which isn’t ideal due to the large final size of the web app. Even with production optimizations, caching and GZIP compression, the file remains quite large. I’m looking for a way to separate shared libraries like Koin and Ktor—since they remain consistent across all web apps and rarely change—into standalone JS or WASM files that can be cached. This would allow users to download only the business logic and UI components, which change with each app version. Additionally, these parts could be further split into separate files as needed for better modularity and performance.
m
We gotta await JetBrains support for multi-module builds. For now, you can load the .wasm lazily but not yet split it easily.