fix(store): singleton store guard

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-10-27 12:05:21 +08:00
parent eb01d03012
commit 5a8725b507
5 changed files with 17 additions and 5 deletions
+5
View File
@@ -44,6 +44,11 @@ function isNodeWithinCircularImports(
export const circularImportRefreshPlugin = (): Plugin => ({
name: "circular-import-refresh",
configureServer(server) {
server.ws.on("message", (message) => {
console.info(message)
})
},
handleHotUpdate({ file, server }: HmrContext) {
const mod = server.moduleGraph.getModuleById(file)