@unocss/preset-web-fonts 66.5.0 → 66.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +5 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -331,7 +331,11 @@ function createWebFontPreset(fetcher) {
|
|
|
331
331
|
if (url)
|
|
332
332
|
preflights.push(await importUrl(url));
|
|
333
333
|
}
|
|
334
|
-
|
|
334
|
+
try {
|
|
335
|
+
preflights.push(await provider.getPreflight?.(fontsForProvider, fetchWithTimeout));
|
|
336
|
+
} catch (e) {
|
|
337
|
+
console.warn(`[unocss] Web fonts preflight fetch failed.`, e);
|
|
338
|
+
}
|
|
335
339
|
}
|
|
336
340
|
const css = preflights.filter(Boolean).join("\n");
|
|
337
341
|
return css;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-web-fonts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.5.
|
|
4
|
+
"version": "66.5.1",
|
|
5
5
|
"description": "Web Fonts support for Uno CSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"ofetch": "^1.4.1",
|
|
53
|
-
"@unocss/core": "66.5.
|
|
53
|
+
"@unocss/core": "66.5.1"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "unbuild",
|