Skip to content

Commit

Permalink
trigger beforeFullReload hook before full-reload
Browse files Browse the repository at this point in the history
  • Loading branch information
ycmjason committed Sep 24, 2022
1 parent f352460 commit bf72920
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite-node/src/hmr/hmr.ts
Expand Up @@ -200,6 +200,7 @@ export async function handleMessage(runner: ViteNodeRunner, emitter: HMREmitter,
})
break
case 'full-reload':
notifyListeners(runner, 'vite:beforeFullReload', payload)
reload(runner, files)
break
case 'prune':
Expand Down

0 comments on commit bf72920

Please sign in to comment.