@unocss/postcss 0.62.2 → 0.62.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/esm.mjs +9 -9
- package/package.json +6 -7
package/dist/esm.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { stat, readFile } from 'node:fs/promises';
|
|
2
2
|
import { normalize } from 'node:path';
|
|
3
3
|
import process from 'node:process';
|
|
4
|
-
import { glob } from 'tinyglobby';
|
|
5
|
-
import postcss from 'postcss';
|
|
6
|
-
import { expandVariantGroup, notNull, regexScopePlaceholder, createGenerator } from '@unocss/core';
|
|
7
4
|
import { createRecoveryConfigLoader } from '@unocss/config';
|
|
5
|
+
import { expandVariantGroup, notNull, regexScopePlaceholder, createGenerator } from '@unocss/core';
|
|
8
6
|
import { transformThemeFn, hasThemeFn } from '@unocss/rule-utils';
|
|
7
|
+
import postcss from 'postcss';
|
|
8
|
+
import { glob } from 'tinyglobby';
|
|
9
9
|
import { parse, generate, clone } from 'css-tree';
|
|
10
10
|
|
|
11
11
|
const defaultFilesystemGlobs = [
|
|
@@ -79,12 +79,6 @@ async function parseApply(root, uno, directiveName) {
|
|
|
79
79
|
await Promise.all(promises);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
async function parseTheme(root, uno) {
|
|
83
|
-
root.walkDecls((decl) => {
|
|
84
|
-
decl.value = transformThemeFn(decl.value, uno.config.theme);
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
|
|
88
82
|
async function parseScreen(root, uno, directiveName) {
|
|
89
83
|
root.walkAtRules(directiveName, async (rule) => {
|
|
90
84
|
let breakpointName = "";
|
|
@@ -132,6 +126,12 @@ function calcMaxWidthBySize(size) {
|
|
|
132
126
|
return Number.isNaN(maxWidth) ? size : `${maxWidth}${unit}`;
|
|
133
127
|
}
|
|
134
128
|
|
|
129
|
+
async function parseTheme(root, uno) {
|
|
130
|
+
root.walkDecls((decl) => {
|
|
131
|
+
decl.value = transformThemeFn(decl.value, uno.config.theme);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
|
|
135
135
|
function createPlugin(options) {
|
|
136
136
|
const {
|
|
137
137
|
cwd = process.cwd(),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/postcss",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.62.
|
|
4
|
+
"version": "0.62.4",
|
|
5
5
|
"description": "PostCSS plugin for UnoCSS",
|
|
6
6
|
"author": "sibbng <sibbngheid@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -55,12 +55,11 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"css-tree": "^2.3.1",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"@unocss/
|
|
62
|
-
"@unocss/
|
|
63
|
-
"@unocss/rule-utils": "0.62.2"
|
|
58
|
+
"postcss": "^8.4.47",
|
|
59
|
+
"tinyglobby": "^0.2.6",
|
|
60
|
+
"@unocss/config": "0.62.4",
|
|
61
|
+
"@unocss/core": "0.62.4",
|
|
62
|
+
"@unocss/rule-utils": "0.62.4"
|
|
64
63
|
},
|
|
65
64
|
"scripts": {
|
|
66
65
|
"build": "unbuild",
|