File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -551,18 +551,17 @@ export class WebpackCompilerService
551
551
path . join ( platformData . appDestinationDirectoryPath , "app" , asset )
552
552
) ;
553
553
554
- // console.log({ staleFiles });
555
-
556
554
// extract last hash from emitted filenames
557
555
const lastHash = ( ( ) => {
558
- const fileWithLastHash = files . find ( ( fileName : string ) =>
556
+ const absoluteFileNameWithLastHash = files . find ( ( fileName : string ) =>
559
557
fileName . endsWith ( "hot-update.js" )
560
558
) ;
561
-
562
- if ( ! fileWithLastHash ) {
559
+
560
+ if ( ! absoluteFileNameWithLastHash ) {
563
561
return null ;
564
562
}
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 / ) ;
566
565
567
566
if ( matches ) {
568
567
return matches [ 1 ] ;
You can’t perform that action at this time.
0 commit comments