File tree Expand file tree Collapse file tree
packages/fxa-settings/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -305,6 +305,30 @@ module.exports = function (webpackEnv) {
305305 // This is only used in production mode
306306 new CssMinimizerPlugin ( ) ,
307307 ] ,
308+ splitChunks : isEnvProduction ? {
309+ cacheGroups : {
310+ presentation : {
311+ test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] r e a c t | r e a c t - d o m | @ r e a c h | @ f l u e n t [ \\ / ] / ,
312+ name : 'presentation-chunk' ,
313+ chunks : 'all' ,
314+ } ,
315+ utils : {
316+ test : / [ \\ / ] n o d e _ m o d u l e s [ \\ / ] m o m e n t | l o d a s h | u a - p a r s e r - j s [ \\ / ] / ,
317+ name : 'utils-chunk' ,
318+ chunks : 'all' ,
319+ } ,
320+ observability : {
321+ test : / ( [ \\ / ] n o d e _ m o d u l e s [ \\ / ] @ s e n t r y .* [ \\ / ] ) | ( [ \\ / ] g l e a n [ \\ / ] ) / ,
322+ name : 'observability-chunk' ,
323+ chunks : 'all' ,
324+ } ,
325+ networking : {
326+ test : / ( [ \\ / ] n o d e _ m o d u l e s [ \\ / ] g r a p h q l | g r a p h q l - t a g | @ a p o l l o .* [ \\ / ] ) | ( [ \\ / ] f x a - a u t h - c l i e n t [ \\ / ] ) / ,
327+ name : 'networking-chunk' ,
328+ chunks : 'all' ,
329+ } ,
330+ } ,
331+ } : { }
308332 } ,
309333 resolve : {
310334 // This allows you to set a fallback for where webpack should look for modules.
You can’t perform that action at this time.
0 commit comments