Option to disable code splitting completely

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.

Author: Fantashit

4 thoughts on “Option to disable code splitting completely

  1. 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.

  2. Webpack 4. Use 1 as the limit, as the single bundle also counts as a chunk.

    plugins: [
        new webpack.optimize.LimitChunkCountPlugin({
             maxChunks: 1
         })
     ]
    
  3. 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?

Comments are closed.