Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(api-javascript): update transformIndexHtml types #603

Merged
merged 10 commits into from
Feb 8, 2024
6 changes: 5 additions & 1 deletion docs/guide/api-javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ interface ViteDevServer {
/**
* Aplica las transformaciones HTML integradas en Vite y las transformaciones HTML de cualquier plugin.
*/
transformIndexHtml(url: string, html: string): Promise<string>
transformIndexHtml(
url: string,
html: string,
originalUrl?: string,
): Promise<string>
/**
* Carga una URL dada como un módulo instanciado para SSR.
*/
Expand Down