If you want to have a look to Coroutines `Flow` us...
# javascript
s
If you want to have a look to Coroutines
Flow
used in a Kotlin/JS application configured with
build.gradle.kts
and DCE without any JS configuration -> https://github.com/sdeleuze/spring-messenger/tree/step-4-kotlin-js/frontend. I hope Kotlin/JS team will update the documentation. The latest changes are going toward a good direction (getting rid of frontend plugin or JS configuration) but that's a pretty diffcult journey for now.
p
nice job. I have a working react application that I made with the new js plugin. I agree that the journey was far from smooth. There is no documentation and only a few examples here and there but now that the project is up and running it is a lot of fun. I noticed the bundle size is really large (40mb) I will try to integrate dce now
@sdeleuze I am not sure the webpack task actually uses the output of dce. Bundle size is the same even with the plugin. Seems like we would need some additional configuration. Or am I missing something?
s
Have a look to my sample
p
I have
s
Without DCE I have 10M of JS
With it I have much much less
But you have to use requirejs and the files generated in js-min
Not the one in distribution
p
But does the size of the bundle (by default in build/distributions) shrink as well? it does not for me.
s
No
p
hmm
s
You have to use requirejs and the files generated in js-min
Yes it is confusing
p
do you have any idea how I would go about configuring the bundler to use the minified files?
s
For that manual webpack configuration with uglifyjs is required
It should be supported out of the box
But we are not here yet
p
yes it would be nice if it was. Now I have to add some js again