@unocss/transformer-directives 66.6.7 → 66.6.8
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 +4 -4
package/dist/index.mjs
CHANGED
|
@@ -169,7 +169,7 @@ function handleScreen({ code, uno }, node) {
|
|
|
169
169
|
else throw new Error(`breakpoint variant not supported: ${prefix}`);
|
|
170
170
|
return `@media (min-width: ${size})`;
|
|
171
171
|
};
|
|
172
|
-
if (!variantEntries.
|
|
172
|
+
if (!variantEntries.some((i) => i[0] === breakpointName)) throw new Error(`breakpoint ${breakpointName} not found`);
|
|
173
173
|
const offset = node.loc.start.offset;
|
|
174
174
|
const str = code.original.slice(offset, node.loc.end.offset);
|
|
175
175
|
const matches = Array.from(str.matchAll(screenRuleRE));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/transformer-directives",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.6.
|
|
4
|
+
"version": "66.6.8",
|
|
5
5
|
"description": "UnoCSS transformer for `@apply` directive",
|
|
6
6
|
"author": "hannoeru <me@hanlee.co>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"css-tree": "^3.1
|
|
32
|
-
"@unocss/core": "66.6.
|
|
33
|
-
"@unocss/rule-utils": "66.6.
|
|
31
|
+
"css-tree": "^3.2.1",
|
|
32
|
+
"@unocss/core": "66.6.8",
|
|
33
|
+
"@unocss/rule-utils": "66.6.8"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"magic-string": "^0.30.21"
|