From b21e06952e05de67bc0ab79f888b45a4c31a19d5 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Thu, 14 Sep 2023 09:18:35 +0100 Subject: [PATCH] Allow non-async chunks to be analysed for shared modules (#14671) GitOrigin-RevId: a07cd29366b360452461ce3c637cf5803275492c --- services/web/webpack.config.js | 7 +++++++ 1 file changed, 7 insertions(+) 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: [