I found a lot of problems with wepback on 2.1.20-Beta2:
• The optimization does not work as expected (https://youtrack.jetbrains.com/issue/KT-74869/KJS-jsBrowserProductionWebpack-does-not-minify-output-with-2.1.20-Beta2). I get 10 Mb file where I expect 4-6 Mb file.
• It takes tons of time and CPU to build webpack bundle
• It started producing additional chunks without asking, and I can't find a way to disable it.
Does anybody know why this happened and how to fix it?
altavir
02/11/2025, 6:45 AM
It seems like chunks are produced by
Copy code
importAsync
r
Robert Jaros
02/11/2025, 8:29 AM
Isn't it the expected result of using
importAsync
from kotlin-wrappers?
a
Artem Kobzar
02/11/2025, 10:36 AM
It's a known issue. I'm working on a fix and it will be landed before 2.1.20 release will be available!