Allow non-async chunks to be analysed for shared modules (#14671)

GitOrigin-RevId: a07cd29366b360452461ce3c637cf5803275492c
This commit is contained in:
Alf Eaton 2023-09-14 09:18:35 +01:00 committed by Copybot
parent f7e4946056
commit b21e06952e

View file

@ -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: [