File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -551,18 +551,17 @@ export class WebpackCompilerService
551551 path . join ( platformData . appDestinationDirectoryPath , "app" , asset )
552552 ) ;
553553
554- // console.log({ staleFiles });
555-
556554 // extract last hash from emitted filenames
557555 const lastHash = ( ( ) => {
558- const fileWithLastHash = files . find ( ( fileName : string ) =>
556+ const absoluteFileNameWithLastHash = files . find ( ( fileName : string ) =>
559557 fileName . endsWith ( "hot-update.js" )
560558 ) ;
561-
562- if ( ! fileWithLastHash ) {
559+
560+ if ( ! absoluteFileNameWithLastHash ) {
563561 return null ;
564562 }
565- const matches = fileWithLastHash . match ( / \. ( .+ ) .h o t - u p d a t e \. j s / ) ;
563+ const fileNameWithLastHash = path . basename ( absoluteFileNameWithLastHash ) ;
564+ const matches = fileNameWithLastHash . match ( / \. ( .+ ) .h o t - u p d a t e \. j s / ) ;
566565
567566 if ( matches ) {
568567 return matches [ 1 ] ;
You can’t perform that action at this time.
0 commit comments