Hello. After 2.2.20-Beta2 and the fix for `<https://youtrack.jetbrains.com/issue/KT-76842>` the proj...
r
Hello. After 2.2.20-Beta2 and the fix for
<https://youtrack.jetbrains.com/issue/KT-76842>
the project root is added to the static directories served by webpack dev server. While I understand the motivation I'm not sure anyone tried working with a real JS or wasmJS project after this change. Any change to the kotlin sources makes webpack reload the application before the compilation/build is finished. In fact we can see more subsequent reloads, while other files in the project are modified by the compiler and bundler. And very often we end up with a syntax error, when the browser tries to load a broken, unfinished js file. In my opinion this change is a serious mistake. @Ilya Goncharov [JB] @bashor
🙏 1
youtrack new 1
l
Is that why I see multiple reloads happen whenever I recompile my webpack?
But I've seen that happen for quite some time now, so perhaps not.
c
@loke no that's a different issue. Webpack always reloads once when the Kotlin compiler finishes and again once it stops bundling. That's been the behavior since at least 2021
b
@Robert Jaros thanks for the report. It’s unfortunate that we didn’t catch it earlier, though we had a similar (not the same) setup in the wizard and some projects.
r
The workaround works.
🙏 1
Why is the fix planned for 2.3.0 and not 2.2.20? We have RC2. It's still time.
b
Given that there is’s simple workaround it might be hard to justify a backport/fix in 2.2.20
Anyway please share your opinion about version in the issue