Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): avoid repeat error clear in vite …
Browse files Browse the repository at this point in the history
…development server

In the Vite-based development server, an error overlay is requested if a build encounters
an error. This error is then cleared when the error is corrected. However, the flag indicating
that the error was cleared was not previously reset. This resulted in additional empty update
commands being sent to the Vite client. While this has no visual effect, it is unneeded additional
processing.

(cherry picked from commit 660bb0a)
  • Loading branch information
clydin committed Oct 18, 2023
1 parent da4e191 commit 0c982b9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export async function* serveWithVite(
}
continue;
} else if (hadError && server) {
hadError = false;
// Send an empty update to clear the error overlay
server.ws.send({
'type': 'update',
Expand Down

0 comments on commit 0c982b9

Please sign in to comment.