Skip to content

Commit

Permalink
only trigger hmr event bubbling if file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Jun 2, 2020
1 parent 37f2f5d commit c69bc73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/commands/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,11 @@ export async function command(commandOptions: CommandOptions) {
if (!updateUrl.endsWith('.js')) {
updateUrl += '.proxy.js';
}
if (!isLiveReloadPaused) {
if (isLiveReloadPaused) {
return;
}
// If no entry exists, file has never been loaded, safe to ignore
if (hmrEngine.getEntry(updateUrl)) {
updateOrBubble(updateUrl, new Set());
}
}
Expand Down

0 comments on commit c69bc73

Please sign in to comment.