Просмотр исходного кода

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

GitOrigin-RevId: a07cd29366b360452461ce3c637cf5803275492c
Alf Eaton 3 лет назад
Родитель
Сommit
b21e06952e
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      services/web/webpack.config.js

+ 7 - 0
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: [