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

**URL:** <https://discuss.kotlinlang.org/t/is-there-a-way-in-kotlin-multiplatform-plugin-to-make-js-bundle-with-all-dependencies/19557>\
**Category:** JavaScript\
**Created:** [October 19, 2020, 3:07pm UTC](https://discuss.kotlinlang.org/t/is-there-a-way-in-kotlin-multiplatform-plugin-to-make-js-bundle-with-all-dependencies/19557 "2020-10-19T15:07:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vk](https://avatars.discourse-cdn.com/v4/letter/v/cab0a1/32.png) [@vk](https://discuss.kotlinlang.org/u/vk)\
**Post date:** [October 19, 2020, 3:07pm UTC](https://discuss.kotlinlang.org/t/is-there-a-way-in-kotlin-multiplatform-plugin-to-make-js-bundle-with-all-dependencies/19557/1 "2020-10-19T15:07:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![alfredlopez](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/alfredlopez/32/8112_2.png) [@alfredlopez](https://discuss.kotlinlang.org/u/alfredlopez)\
**Post date:** [November 2, 2020, 7:06pm UTC](https://discuss.kotlinlang.org/t/is-there-a-way-in-kotlin-multiplatform-plugin-to-make-js-bundle-with-all-dependencies/19557/2 "2020-11-02T19:06:23Z")

</div>

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”.
