Explorar o código

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

GitOrigin-RevId: a07cd29366b360452461ce3c637cf5803275492c
Alf Eaton %!s(int64=3) %!d(string=hai) anos
pai
achega
b21e06952e
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      services/web/webpack.config.js

+ 7 - 0
services/web/webpack.config.js

@@ -108,6 +108,13 @@ module.exports = {
     library: ['Frontend', '[name]'],
     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
   // Define how file types are handled by webpack
   module: {
   module: {
     rules: [
     rules: [