# How to transpile kotlin to ecmascript latest version?

**URL:** <https://discuss.kotlinlang.org/t/how-to-transpile-kotlin-to-ecmascript-latest-version/27635>\
**Category:** JavaScript\
**Created:** [November 14, 2023, 4:51am UTC](https://discuss.kotlinlang.org/t/how-to-transpile-kotlin-to-ecmascript-latest-version/27635 "2023-11-14T04:51:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anlexN](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/anlexn/32/7621_2.png) [@anlexN](https://discuss.kotlinlang.org/u/anlexN)\
**Post date:** [November 14, 2023, 4:51am UTC](https://discuss.kotlinlang.org/t/how-to-transpile-kotlin-to-ecmascript-latest-version/27635/1 "2023-11-14T04:51:54Z")

</div>

[Kotlin for JavaScript](https://kotlinlang.org/docs/js-overview.html)

The current implementation of Kotlin/JS targets [ES5](https://www.ecma-international.org/ecma-262/5.1/).

I don’t like es5. I have clone [kotlinx.coroutines](https://github.com/Kotlin/kotlinx.coroutines). now [kotlinx-coroutines-core.js](https://www.npmjs.com/package/kotlinx-coroutines-core?activeTab=code) is also es5.

how to build ecmascript latest version by myself?
