To learn more about the available features in the Kotlin/JS IR compiler and how to try it for your project, visit the Kotlin/JS IR compiler documentation page and the migration guide. The old compiler has been deprecated since the Kotlin 1.8.0 release.īy generating TypeScript declaration files ( d.ts) from Kotlin code, the IR compiler makes it easier to create "hybrid" applications that mix TypeScript and Kotlin code and to leverage code-sharing functionality using Kotlin Multiplatform. For example, it reduces the size of generated executables via dead code elimination and provides smoother interoperability with the JavaScript ecosystem and its tooling. The Kotlin/JS IR compiler comes with a number of improvements over the old default compiler. To get an overview of the available options, check out the Kotlin/JS project setup documentation. This includes essential functionality such as controlling the bundling of your application, adding JavaScript dependencies directly from npm, and more. They let you easily set up and control Kotlin projects targeting JavaScript in one place. The recommended way to use Kotlin/JS is via the kotlin.js and kotlin.multiplatform Gradle plugins. The current implementation of Kotlin/JS targets ES5. Kotlin/JS provides the ability to transpile your Kotlin code, the Kotlin standard library, and any compatible dependencies to JavaScript.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |