Skip to content

Commit

Permalink
docs: clarify when transformIndexHtml hook runs or not (#17547)
Browse files Browse the repository at this point in the history
Co-authored-by: patak <[email protected]>
  • Loading branch information
fcrozatier and patak-dev committed Jul 23, 2024
1 parent 9983731 commit a7f9827
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/guide/api-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,10 @@ Vite plugins can also provide hooks that serve Vite-specific purposes. These hoo
}
```

::: warning Note
This hook won't be called if you are using a framework that has custom handling of entry files (for example [SvelteKit](https://github.com/sveltejs/kit/discussions/8269#discussioncomment-4509145).
:::
### `handleHotUpdate`
- **Type:** `(ctx: HmrContext) => Array<ModuleNode> | void | Promise<Array<ModuleNode> | void>`
Expand Down

0 comments on commit a7f9827

Please sign in to comment.