Skip to content

Commit

Permalink
fix: hmr account for deleted files
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 19, 2020
1 parent 5852985 commit 3fb11da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/loader/src/replaceSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ ${contexts
} catch (e) {
console.error(\`unable to load module \${doc.moduleId}\`, e);
}
}
} else {
//file could not be found
store.stores.splice(i, 1);
i -= 1;
}
}
}
`;
Expand Down

0 comments on commit 3fb11da

Please sign in to comment.