@@ -56,7 +56,7 @@ class AggressiveSplittingPlugin {
5656
5757 const nameToModuleMap = new Map ( ) ;
5858 chunk . forEachModule ( m => {
59- const name = identifierUtils . makePathsRelative ( compiler . context , m . identifier ( ) ) ;
59+ const name = identifierUtils . makePathsRelative ( compiler . context , m . identifier ( ) , compilation . cache ) ;
6060 nameToModuleMap . set ( name , m ) ;
6161 } ) ;
6262
@@ -127,7 +127,7 @@ class AggressiveSplittingPlugin {
127127 newChunk . origins = chunk . origins . map ( copyWithReason ) ;
128128 chunk . origins = chunk . origins . map ( copyWithReason ) ;
129129 compilation . _aggressiveSplittingSplits = ( compilation . _aggressiveSplittingSplits || [ ] ) . concat ( {
130- modules : newChunk . mapModules ( m => identifierUtils . makePathsRelative ( compiler . context , m . identifier ( ) ) )
130+ modules : newChunk . mapModules ( m => identifierUtils . makePathsRelative ( compiler . context , m . identifier ( ) , compilation . cache ) )
131131 } ) ;
132132 return true ;
133133 } else {
@@ -144,7 +144,7 @@ class AggressiveSplittingPlugin {
144144 if ( chunk . hasEntryModule ( ) ) return ;
145145 const size = chunk . size ( this . options ) ;
146146 const incorrectSize = size < minSize ;
147- const modules = chunk . mapModules ( m => identifierUtils . makePathsRelative ( compiler . context , m . identifier ( ) ) ) ;
147+ const modules = chunk . mapModules ( m => identifierUtils . makePathsRelative ( compiler . context , m . identifier ( ) , compilation . cache ) ) ;
148148 if ( typeof chunk . _fromAggressiveSplittingIndex === "undefined" ) {
149149 if ( incorrectSize ) return ;
150150 chunk . recorded = true ;
0 commit comments