From 37382d1f5764a4ccb9aaae8bf9e499e037d210fb Mon Sep 17 00:00:00 2001 From: HHX <57352881+houhongxu@users.noreply.github.com> Date: Tue, 6 Feb 2024 16:03:46 +0800 Subject: [PATCH] docs(api-javascript): update transformIndexHtml types (#15806) Co-authored-by: bluwy --- docs/guide/api-javascript.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/guide/api-javascript.md b/docs/guide/api-javascript.md index 823552e6f0343c..33ff9a194343dc 100644 --- a/docs/guide/api-javascript.md +++ b/docs/guide/api-javascript.md @@ -144,7 +144,11 @@ interface ViteDevServer { /** * Apply Vite built-in HTML transforms and any plugin HTML transforms. */ - transformIndexHtml(url: string, html: string): Promise + transformIndexHtml( + url: string, + html: string, + originalUrl?: string, + ): Promise /** * Load a given URL as an instantiated module for SSR. */