harden resume filename cache bust patch
This commit is contained in:
@@ -61,7 +61,7 @@ function patchPublicImporters() {
|
||||
|
||||
for (const file of files) {
|
||||
let source = fs.readFileSync(file, 'utf8');
|
||||
source = source.replace(/\.\/file-D5WsIgJH\.js(?:\?v=rr-filename-20260519)?/g, `./file-D5WsIgJH.js?v=${cacheBust}`);
|
||||
source = source.replace(/\.\/file-D5WsIgJH\.js(?:\?v=rr-filename-[A-Za-z0-9-]+)?/g, `./file-D5WsIgJH.js?v=${cacheBust}`);
|
||||
fs.writeFileSync(file, source);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user