Skip to content

Commit c0cee3c

Browse files
sync: Update Vite docs from upstream 20250520
1 parent eb448d3 commit c0cee3c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/config/shared-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ See [here](/guide/env-and-mode#env-files) for more about environment files.
466466
- **Type:** `string | string[]`
467467
- **Default:** `VITE_`
468468

469-
Env variables starting with `envPrefix` will be exposed to your client source code via import.meta.env.
469+
Env variables starting with `envPrefix` will be exposed to your client source code via `import.meta.env`.
470470

471471
:::warning SECURITY NOTES
472472
`envPrefix` should not be set as `''`, which will expose all your env variables and cause unexpected leaking of sensitive information. Vite will throw an error when detecting `''`.

docs/guide/api-environment-frameworks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export default {
329329
}
330330
```
331331
332-
Plugins can also define a `buildApp` hook. Order `'pre'` and `null'` are executed before the configured `builder.buildApp`, and order `'post'` hooks are executed after it. `environment.isBuilt` can be used to check if an environment has already being build.
332+
Plugins can also define a `buildApp` hook. Order `'pre'` and `null` are executed before the configured `builder.buildApp`, and order `'post'` hooks are executed after it. `environment.isBuilt` can be used to check if an environment has already being build.
333333
334334
## Environment Agnostic Code
335335

docs/guide/performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Keeping Vite fast with a growing codebase is about reducing the amount of work f
115115
Examples of doing less work:
116116

117117
- Use CSS instead of Sass/Less/Stylus when possible (nesting can be handled by PostCSS)
118-
- Don't transform SVGs into UI framework components (React, Vue, etc). Import them as strings or URLs instead.
118+
- Don't transform SVGs into UI framework components (React, Vue, etc.). Import them as strings or URLs instead.
119119
- When using `@vitejs/plugin-react`, avoid configuring the Babel options, so it skips the transformation during build (only esbuild will be used).
120120

121121
Examples of using native tooling:

0 commit comments

Comments
 (0)