Is there a way in kotlin multiplatform plugin to make JS bundle with all dependencies?

Lets say, my project has only commonMain dependencies on other kotlin libraraies and kotlin stand lib. Is there a simple way in kotlin multiplatform plugin to make JS bundle with all these dependencies including transitive? Like “jar with dependencies” in Java ecosystem.

1 Like

I have the same question. I have a Kotlin lib that I created and would like to “target” JavaScript. Do I need to write “wrapper” code in JS in order for the compiler to target JS, or can I simply same something like “compile to js”?

I apologize if this is a very noob question, but I’ve only been using kotlin for a few weeks now and the MPP examples/tutorials don’t address this scenario nor do they make assertions as to what is the minimum needed for a MPP. The sample projects simply want you to follow without explanation as to “why’s” and the “why not’s”.