File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,10 @@ export class BuildWatcher {
65
65
} )
66
66
67
67
/**
68
- * Close watcher when server dies
68
+ * Notify that server has died
69
69
*/
70
70
httpServer . on ( 'exit' , ( { code } ) => {
71
- this . _logger . stop ( `closing watcher. Underlying HTTP server died with "%s code"` , code )
72
- watcher . close ( )
71
+ this . _logger . stop ( `Underlying HTTP server died with "%s code"` , code )
73
72
} )
74
73
75
74
/**
Original file line number Diff line number Diff line change @@ -64,11 +64,10 @@ export class Watcher {
64
64
this . compiler . createHttpServer ( config . options . outDir ! )
65
65
66
66
/**
67
- * Close watcher when server dies
67
+ * Notify that the http server has died
68
68
*/
69
69
this . compiler . httpServer . on ( 'exit' , ( { code } ) => {
70
- this . _logger . stop ( `closing watcher. Underlying HTTP server died with "%s code"` , code )
71
- watcher . chokidar . close ( )
70
+ this . _logger . warn ( `Underlying HTTP server died with "%s code"` , code )
72
71
} )
73
72
74
73
const watcher = this . compiler . tsCompiler . watcher ( config )
You can’t perform that action at this time.
0 commit comments