@unocss/transformer-directives 0.45.18 → 0.45.21
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -3
package/dist/index.cjs
CHANGED
|
@@ -154,7 +154,7 @@ async function transformDirectives(code, uno, options, filename, originalCode, o
|
|
|
154
154
|
else if (prefix2 === "at")
|
|
155
155
|
return `@media (min-width: ${size})${variantEntries[idx + 1] ? ` and (max-width: ${calcMaxWidthBySize(variantEntries[idx + 1][1])})` : ""}`;
|
|
156
156
|
else
|
|
157
|
-
throw new Error(`breakpoint variant not
|
|
157
|
+
throw new Error(`breakpoint variant not supported: ${prefix2}`);
|
|
158
158
|
}
|
|
159
159
|
return `@media (min-width: ${size})`;
|
|
160
160
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -150,7 +150,7 @@ async function transformDirectives(code, uno, options, filename, originalCode, o
|
|
|
150
150
|
else if (prefix2 === "at")
|
|
151
151
|
return `@media (min-width: ${size})${variantEntries[idx + 1] ? ` and (max-width: ${calcMaxWidthBySize(variantEntries[idx + 1][1])})` : ""}`;
|
|
152
152
|
else
|
|
153
|
-
throw new Error(`breakpoint variant not
|
|
153
|
+
throw new Error(`breakpoint variant not supported: ${prefix2}`);
|
|
154
154
|
}
|
|
155
155
|
return `@media (min-width: ${size})`;
|
|
156
156
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/transformer-directives",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.21",
|
|
4
4
|
"description": "UnoCSS transformer for `@apply` directive",
|
|
5
5
|
"author": "hannoeru <me@hanlee.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
23
24
|
"require": "./dist/index.cjs",
|
|
24
25
|
"import": "./dist/index.mjs"
|
|
25
26
|
}
|
|
@@ -31,11 +32,11 @@
|
|
|
31
32
|
"dist"
|
|
32
33
|
],
|
|
33
34
|
"dependencies": {
|
|
34
|
-
"@unocss/core": "0.45.
|
|
35
|
+
"@unocss/core": "0.45.21",
|
|
35
36
|
"css-tree": "^2.2.1"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"magic-string": "^0.26.
|
|
39
|
+
"magic-string": "^0.26.3"
|
|
39
40
|
},
|
|
40
41
|
"scripts": {
|
|
41
42
|
"build": "unbuild",
|