From b9e055653062f363b93df8dd78e6fb4ad0de0859 Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Tue, 23 Jul 2024 22:07:32 +0900 Subject: [PATCH] docs: clarify when `transformIndexHtml` hook runs or not (#1504) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit resolve #1501 https://github.com/vitejs/vite/commit/a7f98278a40e284b6ae638d42b3a34d95df7eb41 の反映です。 --- guide/api-plugin.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guide/api-plugin.md b/guide/api-plugin.md index fae4adb1..8224d10b 100644 --- a/guide/api-plugin.md +++ b/guide/api-plugin.md @@ -399,6 +399,10 @@ Vite プラグインは Vite 特有の目的を果たすフックを提供する } ``` +::: warning 注意 +エントリーファイルのカスタム処理があるフレームワークを使用している場合、このフックは呼ばれません(たとえば、[SvelteKit](https://github.com/sveltejs/kit/discussions/8269#discussioncomment-4509145))。 +::: + ### `handleHotUpdate` - **型:** `(ctx: HmrContext) => Array | void | Promise | void>`