Skip to content

Commit

Permalink
refactor: unused
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Apr 9, 2024
1 parent 5adbf6e commit 4954684
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions examples/react-server/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,13 @@ function vitePluginReactServer(): PluginOption {
if (ctx.environment.name === "react-server") {
const ids = ctx.modules.map((mod) => mod.id).filter(typedBoolean);
if (ids.length > 0) {
const invalidated =
__global.reactServerRunner.moduleCache.invalidateDepTree(ids);
debug("[react-server:hotUpdate]", {
ids,
invalidated: [...invalidated],
});
console.log("[react-server:hmr]", ctx.file);
__global.server.environments.client.hot.send({
type: "custom",
event: "react-server:update",
data: {
file: ctx.file,
},
});
return [];
}
}
return;
Expand Down

0 comments on commit 4954684

Please sign in to comment.