Skip to content

Commit a8b6725

Browse files
committed
Making how the splitting works more consistent
1 parent 4de5536 commit a8b6725

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/functional.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,6 +1884,10 @@ module.exports = {
18841884
}
18851885
config.setPublicPath('/build');
18861886
config.splitEntryChunks();
1887+
config.configureSplitChunks((splitChunks) => {
1888+
// will include preact, but prevent any other splitting
1889+
splitChunks.minSize = 10000;
1890+
});
18871891

18881892
return config;
18891893
};

0 commit comments

Comments
 (0)