@unocss/postcss 0.62.4 → 0.63.0

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.
Files changed (2) hide show
  1. package/dist/esm.mjs +4 -4
  2. package/package.json +5 -5
package/dist/esm.mjs CHANGED
@@ -226,16 +226,16 @@ function createPlugin(options) {
226
226
  for (let i = 0; i < entries.length; i += BATCH_SIZE) {
227
227
  const batch = entries.slice(i, i + BATCH_SIZE);
228
228
  promises.push(...batch.map(async (file) => {
229
- const { mtimeMs } = await stat(file);
230
- if (fileMap.has(file) && mtimeMs <= fileMap.get(file))
231
- return;
232
- fileMap.set(file, mtimeMs);
233
229
  result.messages.push({
234
230
  type: "dependency",
235
231
  plugin: directiveMap.unocss,
236
232
  file: normalize(file),
237
233
  parent: from
238
234
  });
235
+ const { mtimeMs } = await stat(file);
236
+ if (fileMap.has(file) && mtimeMs <= fileMap.get(file))
237
+ return;
238
+ fileMap.set(file, mtimeMs);
239
239
  const content = await readFile(file, "utf8");
240
240
  const { matched } = await uno.generate(content, {
241
241
  id: file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/postcss",
3
3
  "type": "module",
4
- "version": "0.62.4",
4
+ "version": "0.63.0",
5
5
  "description": "PostCSS plugin for UnoCSS",
6
6
  "author": "sibbng <sibbngheid@gmail.com>",
7
7
  "license": "MIT",
@@ -54,12 +54,12 @@
54
54
  "postcss": "^8.4.21"
55
55
  },
56
56
  "dependencies": {
57
- "css-tree": "^2.3.1",
57
+ "css-tree": "^3.0.0",
58
58
  "postcss": "^8.4.47",
59
59
  "tinyglobby": "^0.2.6",
60
- "@unocss/config": "0.62.4",
61
- "@unocss/core": "0.62.4",
62
- "@unocss/rule-utils": "0.62.4"
60
+ "@unocss/core": "0.63.0",
61
+ "@unocss/rule-utils": "0.63.0",
62
+ "@unocss/config": "0.63.0"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "unbuild",