As for now, there is no way to disable code splitting feature with some option.
Build & rebuild time is more with code splitting, so, it is useful from developer experience point of view to disable it in development mode. https://www.npmjs.com/package/babel-plugin-remove-webpack could handle some of cases, excluding modern import()
signature.
I’m interested in this feature, but not because of performance.
I have a config to bundle my tests… additional files in this case present no advantage for me.
LimitChunkCountPlugin
with 0 chunksWebpack 4. Use 1 as the limit, as the single bundle also counts as a chunk.
Seems a bit of a performance waste to add a plugin (that merges the chunks) to achieve this. Shouldn’t there be a built-in option for this?