KMP now generates a 731.js next to my main JS file...
# javascript
t
KMP now generates a 731.js next to my main JS file. The content doesn't seem harmful, but what is this and why is this there?
a
Is it in
compileSync
build directory or where?
t
Screenshot 2025-07-29 at 12.38.10.png
e
What's the content if I may ask? I see those files when bundling with Webpack, not always tho.
This is done via https://webpack.js.org/configuration/optimization/#optimizationsplitchunks Seems like chunks can be configured via DSL. Take a look at the generated
webpack.config.js
r
I've seen such chunk generated suddenly after adding kotlinx-datetime library to the project (the chunk was js-joda, which is used by the library for JS target).
e
I feel like WP is just optimizing it as it thinks is the best way based on modules' entry points. But you can just disable the optimization if you don't like it.
t
Thanks for the answers. I haven't looked into chunks yet, it's good to know that it belongs to that part.
t
It also can be any lazy module, which you have in your project or in transitive dependencies