I’ve created a Kotlin react wrapper for the ring-ui library, https://github.com/Logrally/kotlin-react-ring-ui.
ring-ui is composed of many submodules, each component has a wrapper for kotlin/js. At the moment a single JS module is created as output of the gradle build which exports all wrappers and requires all ring-ui. This results in a huge JS file size in a web project when using the wrappers.
Is it possible to force compileKotlin2Js to generate distinct JS files which only export one wrapper module at a time? (e.g. ringui-kotlin-alert.js and ringui-kotlin-button.js instead of a single ringui-kotlina-all.js which defines both)
I guess that I could achieve this by generating a lot of build.gradle files, but that would be a nightmare to handle.