https://kotlinlang.org logo
#javascript
Title
# javascript
b

Björn Lilleike

08/03/2022, 3:33 PM
For our team, the slow continuous build process of kotlin/js is still one of the biggest pain points. Is there a solution to reduce this hot reload times? As far as I understand, it is always one big js created that also includes all the library code when hot reloading. Can this be split to the unchanged library code with only the specific project code been rebundeld? Any other idea is welcome, sourceMaps = false is already active.
r

Robert Jaros

08/03/2022, 3:47 PM
Use the legacy compiler for development and IR for production builds.
b

Big Chungus

08/03/2022, 4:29 PM
There's also an experimental incremental compilation flag as well (search around, can't remember the key)
d

Dirk

08/04/2022, 7:33 AM
For the gradle.properties kotlin.incremental.js.ir=true
2 Views