I’ve noticed that when I compile a js IR browser l...
# javascript
s
I’ve noticed that when I compile a js IR browser library for production it’s not minifying my files very well. Is there a way to improve this?
t
Target - "es2015"?
Granularity - whole program?
Latest Kotlin?
s
yes es2015, and set the granularity to file
however I saw the same thing on both
I improved it by grabbing the compiled module, and then running
bun build --minify
on it
t
Do you use latest Webpack/Terser?
s
I don’t modify what kotlin does
Whatever version of webpack that kotlin downloads