@unocss/transformer-directives 0.35.1 → 0.35.4
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.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -115,9 +115,9 @@ async function transformDirectives(code, uno, options, filename, originalCode, o
|
|
|
115
115
|
};
|
|
116
116
|
const stack = [];
|
|
117
117
|
const processNode = async (node, _item, _list) => {
|
|
118
|
-
if (hasThemeFn)
|
|
118
|
+
if (hasThemeFn)
|
|
119
119
|
handleThemeFn(node);
|
|
120
|
-
|
|
120
|
+
if (isApply && node.type === "Rule") {
|
|
121
121
|
await Promise.all(node.block.children.map(async (childNode, _childItem) => {
|
|
122
122
|
if (childNode.type === "Raw")
|
|
123
123
|
return transformDirectives(code, uno, options, filename, childNode.value, calcOffset(childNode.loc.start.offset));
|
package/dist/index.mjs
CHANGED
|
@@ -111,9 +111,9 @@ async function transformDirectives(code, uno, options, filename, originalCode, o
|
|
|
111
111
|
};
|
|
112
112
|
const stack = [];
|
|
113
113
|
const processNode = async (node, _item, _list) => {
|
|
114
|
-
if (hasThemeFn)
|
|
114
|
+
if (hasThemeFn)
|
|
115
115
|
handleThemeFn(node);
|
|
116
|
-
|
|
116
|
+
if (isApply && node.type === "Rule") {
|
|
117
117
|
await Promise.all(node.block.children.map(async (childNode, _childItem) => {
|
|
118
118
|
if (childNode.type === "Raw")
|
|
119
119
|
return transformDirectives(code, uno, options, filename, childNode.value, calcOffset(childNode.loc.start.offset));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/transformer-directives",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.4",
|
|
4
4
|
"description": "UnoCSS transformer for `@apply` directive",
|
|
5
5
|
"author": "hannoeru <me@hanlee.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
23
|
+
"require": "./dist/index.cjs",
|
|
24
|
+
"import": "./dist/index.mjs"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"main": "./dist/index.cjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dist"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@unocss/core": "0.35.
|
|
34
|
+
"@unocss/core": "0.35.4",
|
|
35
35
|
"css-tree": "^2.1.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|