This repository was archived by the owner on Jun 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,8 @@ ${file.headerContent ? file.headerContent.join("\n") : ""}`);
256
256
}
257
257
if ( this . context . sourceMapsProject || this . context . sourceMapsVendor ) {
258
258
let sourceName = / [ ^ \/ ] * $ / . exec ( this . context . output . filename ) [ 0 ] ;
259
- this . concat . add ( null , `//# sourceMappingURL=${ sourceName } .js.map` ) ;
259
+
260
+ this . concat . add ( null , `//# sourceMappingURL=${ sourceName } .js.map?tm=${ this . context . cacheBustPreffix } ` ) ;
260
261
}
261
262
}
262
263
Original file line number Diff line number Diff line change @@ -679,7 +679,7 @@ export class File {
679
679
}
680
680
result . outputText = result
681
681
. outputText
682
- . replace ( `//# sourceMappingURL=${ this . info . fuseBoxPath } .map` , `//# sourceMappingURL=${ this . context . bundle . name } .js.map` )
682
+ . replace ( `//# sourceMappingURL=${ this . info . fuseBoxPath } .map` , `//# sourceMappingURL=${ this . context . bundle . name } .js.map?tm= ${ this . context . cacheBustPreffix } ` )
683
683
. replace ( "//# sourceMappingURL=module.js.map" , "" ) ;
684
684
this . sourceMap = JSON . stringify ( jsonSourceMaps ) ;
685
685
}
Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ export class WorkFlowContext {
69
69
*/
70
70
public appRoot : any = appRoot . path ;
71
71
72
+ public cacheBustPreffix : string ;
73
+
72
74
public dynamicImportsEnabled = true ;
73
75
74
76
public automaticAlias = true ;
@@ -399,6 +401,7 @@ export class WorkFlowContext {
399
401
*/
400
402
public reset ( ) {
401
403
this . log . reset ( ) ;
404
+ this . cacheBustPreffix = new Date ( ) . getTime ( ) . toString ( ) ;
402
405
this . dependents = new Map < string , Set < string > > ( ) ;
403
406
this . emitter = new NativeEmitter ( ) ;
404
407
this . storage = new Map ( ) ;
You can’t perform that action at this time.
0 commit comments