Skip to content

Commit

Permalink
fix(optimizer): resolve all promises when cancelled (#18826)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Nov 29, 2024
1 parent a20267b commit d6e6194
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/vite/src/node/optimizer/optimizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ export function createDepsOptimizer(

if (closed) {
currentlyProcessing = false
depOptimizationProcessing.resolve()
resolveEnqueuedProcessingPromises()
return
}

Expand Down

0 comments on commit d6e6194

Please sign in to comment.