# Can I have several Output Files when using Kotlin JS

**URL:** <https://discuss.kotlinlang.org/t/can-i-have-several-output-files-when-using-kotlin-js/4266>\
**Category:** JavaScript\
**Created:** [August 20, 2017, 11:10am UTC](https://discuss.kotlinlang.org/t/can-i-have-several-output-files-when-using-kotlin-js/4266 "2017-08-20T11:10:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rostei](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@rostei](https://discuss.kotlinlang.org/u/rostei)\
**Post date:** [August 20, 2017, 11:10am UTC](https://discuss.kotlinlang.org/t/can-i-have-several-output-files-when-using-kotlin-js/4266/1 "2017-08-20T11:10:02Z")

</div>

I recently started using Kotlin for a Chrome-Extension-Project. For this I need the kotlin js transpiler not to output just one js file with all the code in it, but two distinct files.

Is there currently an option to do this easily without using a build-tool like gradle or maven?

---

<div class="post-metadata">

**Author:** ![pdvrieze](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/pdvrieze/32/1882_2.png) [@pdvrieze](https://discuss.kotlinlang.org/u/pdvrieze)\
**Post date:** [August 29, 2017, 11:35am UTC](https://discuss.kotlinlang.org/t/can-i-have-several-output-files-when-using-kotlin-js/4266/2 "2017-08-29T11:35:41Z")

</div>

By far the easiest approach would be to have multiple (two) modules/sub projects

---

<div class="post-metadata">

**Author:** ![rostei](https://avatars.discourse-cdn.com/v4/letter/r/c37758/32.png) [@rostei](https://discuss.kotlinlang.org/u/rostei)\
**Post date:** [August 29, 2017, 2:05pm UTC](https://discuss.kotlinlang.org/t/can-i-have-several-output-files-when-using-kotlin-js/4266/3 "2017-08-29T14:05:58Z")

</div>

Yeah, that’s what I ended up doing. Unfortunately this method is far from ideal.  
Being able to configure the build somewhat, will definitely be important for the future.

---

<div class="post-metadata">

**Author:** ![lsafer-meemer](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@lsafer-meemer](https://discuss.kotlinlang.org/u/lsafer-meemer)\
**Post date:** [June 13, 2023, 3:27pm UTC](https://discuss.kotlinlang.org/t/can-i-have-several-output-files-when-using-kotlin-js/4266/4 "2023-06-13T15:27:33Z")

</div>

Is there any updates on this?
