https://kotlinlang.org logo
#compose-web
Title
# compose-web
s

SeikoDes

01/30/2023, 5:06 AM
Hi, guys. The task
:app:web:jsBrowserProductionWebpack
is particularly time consuming in my project: https://github.com/qdsfdhvh/compose-imageloader/blob/1.2.8/app/web/build.gradle.kts, how can I optimize this piece. build scan: https://scans.gradle.com/s/nyuvglstexjea/timeline?toggled=WyIwIl0&view=by-type
h

hfhbd

01/30/2023, 8:58 AM
The kotlin js gradle plugin compiles the kotlin code to (normal) js and then runs the webpack plugin with this js code and your resources. While this duration is strange, I would check it first by running webpack by yourself to see if this a webpack bug. Maybe it is possible to get statistics from webpack?
and why do you overwrite the webpack versions and don't use the defined ones?
s

SeikoDes

01/30/2023, 9:59 AM
The webpack version was configured a long time ago, I tried to remove it and use the default version but it took the same amount of time.
5 Views