Skip to content

Commit

Permalink
docs(api-plugin): fix code block (#1468)
Browse files Browse the repository at this point in the history
  • Loading branch information
NozomuIkuta committed Jun 24, 2024
1 parent 0fe6138 commit 942ac8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guide/api-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ Vite プラグインは Vite 特有の目的を果たすフックを提供する
}
return []
}
```
```

- 空の配列を返し、クライアントにカスタムイベントを送信して、完全なカスタム HMR 処理を実行します:

Expand Down Expand Up @@ -658,4 +658,4 @@ import.meta.hot?.on('custom:foo', (payload) => {
import.meta.hot?.on('unknown:event', (payload) => {
// ペイロードの型は any になります
})
```
```

0 comments on commit 942ac8d

Please sign in to comment.