File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/angular/build/src/builders/dev-server Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ export async function* serveWithVite(
181
181
case ResultKind . Failure :
182
182
if ( result . errors . length && server ) {
183
183
hadError = true ;
184
- server . hot . send ( {
184
+ server . ws . send ( {
185
185
type : 'error' ,
186
186
err : {
187
187
message : result . errors [ 0 ] . text ,
@@ -230,7 +230,7 @@ export async function* serveWithVite(
230
230
if ( hadError && server ) {
231
231
hadError = false ;
232
232
// Send an empty update to clear the error overlay
233
- server . hot . send ( {
233
+ server . ws . send ( {
234
234
'type' : 'update' ,
235
235
updates : [ ] ,
236
236
} ) ;
@@ -369,7 +369,7 @@ export async function* serveWithVite(
369
369
key : 'r' ,
370
370
description : 'force reload browser' ,
371
371
action ( server ) {
372
- server . hot . send ( {
372
+ server . ws . send ( {
373
373
type : 'full-reload' ,
374
374
path : '*' ,
375
375
} ) ;
@@ -433,7 +433,7 @@ async function handleUpdate(
433
433
if ( serverOptions . liveReload || serverOptions . hmr ) {
434
434
if ( updatedFiles . every ( ( f ) => f . endsWith ( '.css' ) ) ) {
435
435
const timestamp = Date . now ( ) ;
436
- server . hot . send ( {
436
+ server . ws . send ( {
437
437
type : 'update' ,
438
438
updates : updatedFiles . flatMap ( ( filePath ) => {
439
439
// For component styles, an HMR update must be sent for each one with the corresponding
@@ -468,7 +468,7 @@ async function handleUpdate(
468
468
469
469
// Send reload command to clients
470
470
if ( serverOptions . liveReload ) {
471
- server . hot . send ( {
471
+ server . ws . send ( {
472
472
type : 'full-reload' ,
473
473
path : '*' ,
474
474
} ) ;
You can’t perform that action at this time.
0 commit comments