diff --git a/services/web/webpack.config.js b/services/web/webpack.config.js index 79450e983a..96e847070c 100644 --- a/services/web/webpack.config.js +++ b/services/web/webpack.config.js @@ -108,6 +108,13 @@ module.exports = { library: ['Frontend', '[name]'], }, + optimization: { + // https://webpack.js.org/plugins/split-chunks-plugin/#splitchunkschunks + splitChunks: { + chunks: 'all', // allow non-async chunks to be analysed for shared modules + }, + }, + // Define how file types are handled by webpack module: { rules: [