Skip to content

Commit

Permalink
docs: reload after invalidate (#1525)
Browse files Browse the repository at this point in the history
resolve #1524

vitejs/vite@d78d44b の反映です。
  • Loading branch information
shuuji3 authored Aug 13, 2024
1 parent ef50ca7 commit baf5beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/api-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ Vite プラグインは Vite 特有の目的を果たすフックを提供する

```js
handleHotUpdate({ server, modules, timestamp }) {
server.ws.send({ type: 'full-reload' })
// Invalidate modules manually
const invalidatedModules = new Set()
for (const mod of modules) {
Expand All @@ -443,6 +442,7 @@ Vite プラグインは Vite 特有の目的を果たすフックを提供する
true
)
}
server.ws.send({ type: 'full-reload' })
return []
}
```
Expand Down

0 comments on commit baf5beb

Please sign in to comment.