File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1093,11 +1093,7 @@ async function loadConfigFromBundledFile(
1093
1093
try {
1094
1094
return ( await dynamicImport ( fileUrl ) ) . default
1095
1095
} finally {
1096
- try {
1097
- await fsp . unlink ( fileNameTmp )
1098
- } catch {
1099
- // already removed if this function is called twice simultaneously
1100
- }
1096
+ fs . unlink ( fileNameTmp , ( ) => { } ) // Ignore errors
1101
1097
}
1102
1098
}
1103
1099
// for cjs, we can register a custom loader via `_require.extensions`
Original file line number Diff line number Diff line change @@ -626,7 +626,7 @@ export function runOptimizeDeps(
626
626
627
627
// Clean up old files in the background
628
628
for ( const filePath of oldFilesPaths )
629
- if ( ! newFilesPaths . has ( filePath ) ) fsp . unlink ( filePath )
629
+ if ( ! newFilesPaths . has ( filePath ) ) fs . unlink ( filePath , ( ) => { } ) // ignore errors
630
630
631
631
await Promise . all ( files )
632
632
} ,
You can’t perform that action at this time.
0 commit comments