You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/features.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,12 +129,18 @@ Alternativ können Sie `vite/client` zu `compilerOptions.types` in `tsconfig.jso
129
129
```json [tsconfig.json]
130
130
{
131
131
"compilerOptions": {
132
-
"types": ["vite/client"]
132
+
"types": ["some-other-global-lib"]
133
133
}
134
134
}
135
135
```
136
136
137
-
Damit werden die folgenden Arten von Shims bereitgestellt:
137
+
::: warning
138
+
139
+
Wenn [`compilerOptions.types`](https://www.typescriptlang.org/tsconfig#types) angegeben ist, werden nur diese Pakete in den globalen Bereich aufgenommen (anstelle aller sichtbaren „@types“-Pakete).
140
+
141
+
:::
142
+
143
+
`vite/client` stellt die folgenden Arten von Shims bereit:
138
144
139
145
- Asset-Importe (z.B. Importieren einer `.svg`-Datei)
140
146
- Typen für die in Vite eingefügten [konstanten Variablen](./env-and-mode#env-variables) auf `import.meta.env`
0 commit comments