:spider_web: Latest Kobweb v0.19.0 :spider_web: <h...
# kobweb
d
๐Ÿ•ธ๏ธ Latest Kobweb v0.19.0 ๐Ÿ•ธ๏ธ https://github.com/varabyte/kobweb/releases/tag/v0.19.0 K2 support at last.
๐Ÿš€ 6
๐ŸŽ‰ 1
๐Ÿ‘๐Ÿป 1
๐Ÿ‘ 5
The migration is a little more involved than usual, because with K2, build locations and also Gradle setup has changed a bit on JetBrains' site. Be sure to read https://github.com/varabyte/kobweb/blob/feature/k2/docs/k2-migration.md to walk you through any project upgrades.
K2 results in decent memory reductions of the final site bundle; and early testing of the ES2015 target shows even more.
Also with this release Kobweb and Kotlin Gradle plugins are both compatible with the Gradle configuration cache so we recommend turning it on if you can (more info in the migration doc). In a world of live reloading, all compilation speedups are welcome!
If any of you try out this new release, we'd love to hear how the experience went. Hopefully smoothly ๐Ÿคž
Have a great weekend everyone
u
Awesome ๐Ÿคฉ Thanks you very much !
๐Ÿค 1
r
I found that exporting the site for me with the Kotlin/JS ES2015 target failed . I am happy to share the output with you. This is the task that failed:
> Task sitecompileDevelopmentExecutableKotlinJs FAILED
It does not look to be the fault of Kobweb.
d
ES2015 failed for someone else too. If the code is public, it could be great to file an issue with JB. I can do it on your behalf if you can supply repro steps
r
No worries. I didn't copy the whole error in here because . . . . it's really long. It starts out like this:
Copy code
> Task :site:compileDevelopmentExecutableKotlinJs FAILED
e: org.jetbrains.kotlin.backend.common.CompilationException: Back-end: Please report this problem <https://kotl.in/issue>
/mnt/agent/work/5b4bef35b35b9f12/compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/layout/SubcomposeLayout.kt:585:1
Problem with `@OptIn(markerClass = [ExperimentalComposeUiApi::class])
internal class LayoutNodeSubcompositionsState {
  constructor(root: LayoutNode, slotReusePolicy: SubcomposeSlotReusePolicy, /* var */ $box: LayoutNodeSubcompositionsState?) /* primary */ {
Like I said, I don't think this is related to Kobweb at all.
Because All I did to fix this was to remove that block that configured ES2015.
d
Ah yeah I know. I just want to help JB fix it because I think it will really benefit Kobweb users when they do
r
Yah--having a smaller binary size would certainly help.
๐Ÿ’ฏ 1