@@ -222,13 +222,15 @@ export class DevServer {
222
222
* file is being imported.
223
223
*/
224
224
if ( ( action === 'add' || action === 'delete' ) && this . mode === 'hmr' ) {
225
+ debug ( 'ignoring add and delete actions in HMR mode %s' , filePath )
225
226
return
226
227
}
227
228
228
229
/**
229
230
* Notify about the invalidated file
230
231
*/
231
232
if ( info && info . source === 'hot-hook' && info . hotReloaded ) {
233
+ debug ( 'hot reloading %s, info %O' , filePath , info )
232
234
this . ui . logger . log ( `${ this . ui . colors . green ( 'invalidated' ) } ${ filePath } ` )
233
235
return
234
236
}
@@ -237,6 +239,7 @@ export class DevServer {
237
239
* Do not do anything when fullReload is not enabled.
238
240
*/
239
241
if ( info && ! info . fullReload ) {
242
+ debug ( 'ignoring full reload' , filePath , info )
240
243
return
241
244
}
242
245
@@ -292,9 +295,13 @@ export class DevServer {
292
295
293
296
this . #httpServer. on ( 'message' , async ( message ) => {
294
297
if ( this . #isAdonisJSReadyMessage( message ) ) {
298
+ debug ( 'received http server ready message %O' , message )
299
+
295
300
await this . #postServerReady( message )
296
301
resolve ( )
297
302
} else if ( this . #mode === 'hmr' && this . #isHotHookMessage( message ) ) {
303
+ debug ( 'received hot-hook message %O' , message )
304
+
298
305
if ( message . type === 'hot-hook:file-changed' ) {
299
306
switch ( message . action ) {
300
307
case 'add' :
0 commit comments