:mega: :mega: :mega: Hi, all! Please share your e...
# javascript
b
📣 📣 📣 Hi, all! Please share your experience with using incremental compilation for Kotlin/JS. In the case you have missed it, you can find more information here https://blog.jetbrains.com/kotlin/2018/09/kotlin-1-2-70-is-out/ It’s even better with 1.3.10 and later. And the small poll about it: Do you use Incremental Compilation for Kotlin/JS? 👌 🚫 🐛 — doesn’t work to me — I don’t know about such possibility
2
🚫 1
🐛 2
👌 6
Incremental compilation for Kotlin/JS is still experimental and disabled by default. To try it, you need to enable it explicitly: * In a Gradle project, add
kotlin.incremental.js=true
into
gradle.properties
or
local.properties
* In a project built with IntelliJ IDEA, go to
Settings | Build, Execution, Deployment | Compiler | Kotlin Compiler | Kotlin
to JavaScript and check
Enable incremental compilation (experimental)
. Note: it would be better to update to 1.3.10 or later.
t
I just enabled it on my project. I got an error. Should I report it here or open an issue ?
b
@tarek do you use 1.3.10 or later? If so please file an issue. Otherwise just try it with newer verseion.
j
It works really well and it is fast ~10seconds, compared to 2-3minutes when doing full recompilation
👍 1
b
So, incremental compilation for Kotlin/JS is enabled by default since 1.3.20 EAP2! 🎉 Have a nice Kotlin! https://twitter.com/kotlin/status/1075706610968920064
👍 2
🎉 8
Don’t hesitate to file an issue if you have any issue with it! And in the case you want to turn off it, you can do it using almost the same instruction in the first message of the thread (change
true
->
false
and so on). And please tell us why.
👍 3