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
1 change: 1 addition & 0 deletions docs/config/dep-optimization-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Configurar en `true` para forzar el empaquetado previo de dependencias, ignorand

## optimizeDeps.holdUntilCrawlEnd

=======
- **Experimental**
- **Tipo:** `boolean`
- **Por defecto:** `true`
Expand Down
5 changes: 5 additions & 0 deletions docs/config/shared-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ Si se configura esta opción, los preprocesadores CSS se ejecutarán en los work

## css.devSourcemap

- **Experimental** [Hacer Comentarios](https://github.com/vitejs/vite/discussions/13845)
Franqsanz marked this conversation as resolved.
Show resolved Hide resolved
=======
- **Experimental** [Hacer comentarios](https://github.com/vitejs/vite/discussions/13845)
Franqsanz marked this conversation as resolved.
Show resolved Hide resolved
- **Tipo:** `boolean`
- **Por defecto:** `false`
Expand All @@ -272,6 +274,9 @@ Habilita los mapas de origen durante el desarrollo.
## css.transformer

- **Experimental** [Hacer Comentarios](https://github.com/vitejs/vite/discussions/13835)
- **Type:** `'postcss' | 'lightningcss'`
Franqsanz marked this conversation as resolved.
Show resolved Hide resolved
- **Default:** `'postcss'`
Franqsanz marked this conversation as resolved.
Show resolved Hide resolved
=======
Franqsanz marked this conversation as resolved.
Show resolved Hide resolved
- **Tipo:** `'postcss' | 'lightningcss'`
- **Por defecto:** `'postcss'`

Expand Down
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
2 changes: 2 additions & 0 deletions docs/guide/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ El modo librería incluye una configuración simple y pragmática para librería

## Opciones avanzadas para Base

::: warning
=======
:::warning Nota
Franqsanz marked this conversation as resolved.
Show resolved Hide resolved
Esta característica es experimental. [Hacer Comentarios](https://github.com/vitejs/vite/discussions/13834).
:::
Expand Down