Skip to content

Commit a7f9827

Browse files
docs: clarify when transformIndexHtml hook runs or not (#17547)
Co-authored-by: patak <[email protected]>
1 parent 9983731 commit a7f9827

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/guide/api-plugin.md

+4
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,10 @@ Vite plugins can also provide hooks that serve Vite-specific purposes. These hoo
399399
}
400400
```
401401

402+
::: warning Note
403+
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).
404+
:::
405+
402406
### `handleHotUpdate`
403407

404408
- **Type:** `(ctx: HmrContext) => Array<ModuleNode> | void | Promise<Array<ModuleNode> | void>`

0 commit comments

Comments
 (0)