Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15b3478 commit c40987aCopy full SHA for c40987a
packages-presets/preset-web-fonts/src/preset.ts
@@ -129,7 +129,12 @@ export function createWebFontPreset(fetcher: (url: string) => Promise<any>) {
129
preflights.push(await importUrl(url))
130
}
131
132
- preflights.push(await provider.getPreflight?.(fontsForProvider, fetchWithTimeout))
+ try {
133
+ preflights.push(await provider.getPreflight?.(fontsForProvider, fetchWithTimeout))
134
+ }
135
+ catch (e) {
136
+ console.warn(`[unocss] Web fonts preflight fetch failed.`, e)
137
138
139
140
const css = preflights.filter(Boolean).join('\n')
0 commit comments