File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -432,6 +432,10 @@ class WebpackOptionsApply extends OptionsApply {
432432 const RemoveEmptyChunksPlugin = require ( "./optimize/RemoveEmptyChunksPlugin" ) ;
433433 new RemoveEmptyChunksPlugin ( ) . apply ( compiler ) ;
434434 }
435+ if ( options . optimization . mergeDuplicateChunks ) {
436+ const MergeDuplicateChunksPlugin = require ( "./optimize/MergeDuplicateChunksPlugin" ) ;
437+ new MergeDuplicateChunksPlugin ( ) . apply ( compiler ) ;
438+ }
435439 if ( options . optimization . flagIncludedChunks ) {
436440 const FlagIncludedChunksPlugin = require ( "./optimize/FlagIncludedChunksPlugin" ) ;
437441 new FlagIncludedChunksPlugin ( ) . apply ( compiler ) ;
@@ -470,10 +474,6 @@ class WebpackOptionsApply extends OptionsApply {
470474 const SplitChunksPlugin = require ( "./optimize/SplitChunksPlugin" ) ;
471475 new SplitChunksPlugin ( options . optimization . splitChunks ) . apply ( compiler ) ;
472476 }
473- if ( options . optimization . mergeDuplicateChunks ) {
474- const MergeDuplicateChunksPlugin = require ( "./optimize/MergeDuplicateChunksPlugin" ) ;
475- new MergeDuplicateChunksPlugin ( ) . apply ( compiler ) ;
476- }
477477 if ( options . optimization . runtimeChunk ) {
478478 const RuntimeChunkPlugin = require ( "./optimize/RuntimeChunkPlugin" ) ;
479479 new RuntimeChunkPlugin (
You can’t perform that action at this time.
0 commit comments