File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -295,12 +295,13 @@ class ConcatenatedModule extends Module {
295295 }
296296
297297 _createIdentifier ( ) {
298- const orderedConcatenationListIdentifiers = this . _orderedConcatenationList . map ( info => {
299- switch ( info . type ) {
300- case "concatenated" :
301- return info . module . identifier ( ) ;
298+ let orderedConcatenationListIdentifiers = "" ;
299+ for ( let i = 0 ; i < this . _orderedConcatenationList . length ; i ++ ) {
300+ if ( this . _orderedConcatenationList [ i ] . type === "concatenated" ) {
301+ orderedConcatenationListIdentifiers += this . _orderedConcatenationList [ i ] . module . identifier ( ) ;
302+ orderedConcatenationListIdentifiers += " " ;
302303 }
303- } ) . filter ( Boolean ) . join ( " " ) ;
304+ }
304305 const hash = crypto . createHash ( "md5" ) ;
305306 hash . update ( orderedConcatenationListIdentifiers ) ;
306307 return this . rootModule . identifier ( ) + " " + hash . digest ( "hex" ) ;
You can’t perform that action at this time.
0 commit comments