File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,9 @@ export class HMRClient {
190190 }
191191
192192 public send ( payload : HotPayload ) : void {
193- this . transport . send ( payload )
193+ this . transport . send ( payload ) . catch ( ( err ) => {
194+ this . logger . error ( err )
195+ } )
194196 }
195197
196198 public clear ( ) : void {
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ const createInvokeableTransport = (
179179export interface NormalizedModuleRunnerTransport {
180180 connect ?( onMessage ?: ( data : HotPayload ) => void ) : Promise < void > | void
181181 disconnect ?( ) : Promise < void > | void
182- send ( data : HotPayload ) : void
182+ send ( data : HotPayload ) : Promise < void >
183183 invoke < T extends keyof InvokeMethods > (
184184 name : T ,
185185 data : Parameters < InvokeMethods [ T ] > ,
You can’t perform that action at this time.
0 commit comments