File tree 1 file changed +1
-16
lines changed
packages/gatsby/src/utils
1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -643,7 +643,6 @@ module.exports = async (
643
643
} ,
644
644
// if a module is bigger than 160kb from node_modules we make a separate chunk for it
645
645
lib : {
646
- // Don't split up the page chunks as they won't be loaded by gatsby anyways
647
646
test ( module ) {
648
647
return (
649
648
! isCssModule ( module ) &&
@@ -672,24 +671,10 @@ module.exports = async (
672
671
// if a chunk is used on all components we put it in commons (we need at least 2 components)
673
672
minChunks : Math . max ( componentsCount , 2 ) ,
674
673
priority : 20 ,
675
- // Don't split up the page chunks as they won't be loaded by gatsby anyways
676
- // test: isPartialHydrationEnabled
677
- // ? function (module, { chunkGraph }) {
678
- // for (const chunk of chunkGraph.getModuleChunksIterable(
679
- // module
680
- // )) {
681
- // if (chunk.name?.startsWith(`component---`)) {
682
- // return false
683
- // }
684
- // }
685
-
686
- // return true
687
- // }
688
- // : undefined,
689
674
} ,
690
675
// If a chunk is used in at least 2 components we create a separate chunk
691
676
shared : {
692
- test : module => isCssModule ( module ) ,
677
+ test : module => ! isCssModule ( module ) ,
693
678
name ( module , chunks ) {
694
679
const hash = crypto
695
680
. createHash ( `sha1` )
You can’t perform that action at this time.
0 commit comments