Skip to content

Commit 0c982b9

Browse files
committed
fix(@angular-devkit/build-angular): avoid repeat error clear in vite 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)
1 parent da4e191 commit 0c982b9

File tree

1 file changed

+1
-0
lines changed
  • packages/angular_devkit/build_angular/src/builders/dev-server

1 file changed

+1
-0
lines changed

packages/angular_devkit/build_angular/src/builders/dev-server/vite-server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ export async function* serveWithVite(
151151
}
152152
continue;
153153
} else if (hadError && server) {
154+
hadError = false;
154155
// Send an empty update to clear the error overlay
155156
server.ws.send({
156157
'type': 'update',

0 commit comments

Comments
 (0)