@unocss/preset-web-fonts 65.4.0 → 65.4.3
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 -7
- package/dist/local.mjs +1 -0
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { mergeDeep, toArray, definePreset } from '@unocss/core';
|
|
2
|
-
|
|
3
|
-
const LAYER_IMPORTS = "imports";
|
|
1
|
+
import { mergeDeep, toArray, LAYER_IMPORTS, definePreset } from '@unocss/core';
|
|
4
2
|
|
|
5
3
|
function createBunnyFontsProvider(name, host) {
|
|
6
4
|
return {
|
|
@@ -85,9 +83,9 @@ function createFontSourceProvider(name, host) {
|
|
|
85
83
|
format: "woff2-variations"
|
|
86
84
|
}],
|
|
87
85
|
variable: {
|
|
88
|
-
wght: mergeAxes.wght ??
|
|
89
|
-
wdth: mergeAxes.wdth ??
|
|
90
|
-
slnt: mergeAxes.slnt ??
|
|
86
|
+
wght: mergeAxes.wght ?? undefined,
|
|
87
|
+
wdth: mergeAxes.wdth ?? undefined,
|
|
88
|
+
slnt: mergeAxes.slnt ?? undefined
|
|
91
89
|
},
|
|
92
90
|
unicodeRange: metadata.unicodeRange[subset],
|
|
93
91
|
comment: `${metadata.id}-${subset}-wght-normal`
|
|
@@ -309,7 +307,7 @@ function createWebFontPreset(fetcher) {
|
|
|
309
307
|
css = await processor.transformCSS?.(css) || css;
|
|
310
308
|
return css;
|
|
311
309
|
},
|
|
312
|
-
layer: inlineImports ?
|
|
310
|
+
layer: inlineImports ? undefined : LAYER_IMPORTS
|
|
313
311
|
}
|
|
314
312
|
]
|
|
315
313
|
};
|
package/dist/local.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/preset-web-fonts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "65.4.
|
|
4
|
+
"version": "65.4.3",
|
|
5
5
|
"description": "Web Fonts support for Uno CSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/antfu",
|
|
9
|
-
"homepage": "https://
|
|
9
|
+
"homepage": "https://unocss.dev",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/unocss/unocss",
|
|
13
|
-
"directory": "packages/preset-web-fonts"
|
|
13
|
+
"directory": "packages-presets/preset-web-fonts"
|
|
14
14
|
},
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/unocss/unocss/issues"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"ofetch": "^1.4.1",
|
|
53
|
-
"@unocss/core": "65.4.
|
|
53
|
+
"@unocss/core": "65.4.3"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "unbuild",
|