@unocss/transformer-directives 0.64.1 → 0.65.0-beta.2
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 +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -90,7 +90,7 @@ function removeComments(value) {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
async function transformIconString(uno, icon, color) {
|
|
93
|
-
const presetIcons = uno.
|
|
93
|
+
const presetIcons = uno.config.presets?.flat()?.find((i) => i.name === "@unocss/preset-icons");
|
|
94
94
|
if (!presetIcons) {
|
|
95
95
|
console.warn("@unocss/preset-icons not found, icon() directive will be keep as-is");
|
|
96
96
|
return;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/transformer-directives",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.65.0-beta.2",
|
|
5
5
|
"description": "UnoCSS transformer for `@apply` directive",
|
|
6
6
|
"author": "hannoeru <me@hanlee.co>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"css-tree": "^3.0.1",
|
|
36
|
-
"@unocss/core": "0.
|
|
37
|
-
"@unocss/rule-utils": "0.
|
|
36
|
+
"@unocss/core": "0.65.0-beta.2",
|
|
37
|
+
"@unocss/rule-utils": "0.65.0-beta.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"magic-string": "^0.30.12"
|