@unocss/postcss 66.1.0-beta.12 → 66.1.0-beta.13

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 +3 -2
  2. package/package.json +4 -4
package/dist/esm.mjs CHANGED
@@ -36,7 +36,7 @@ async function parseApply(root, uno, directiveName) {
36
36
  for (const i of utils) {
37
37
  const [, _selector, body, parent] = i;
38
38
  const selector = _selector?.replace(regexScopePlaceholder, " ") || _selector;
39
- if (parent || selector && selector !== ".\\-") {
39
+ if (parent || selector && selector !== ".\\-" && !selector.startsWith("@property")) {
40
40
  const node = parse(rule.parent.toString(), {
41
41
  context: "rule"
42
42
  });
@@ -198,11 +198,12 @@ function createPlugin(options) {
198
198
  throw new Error(`UnoCSS config not found: ${error.message}`);
199
199
  }
200
200
  const globs = uno.config.content?.filesystem ?? defaultFilesystemGlobs;
201
+ const needCheckNodeMoudules = globs.some((i) => i.includes("node_modules"));
201
202
  const plainContent = uno.config.content?.inline ?? [];
202
203
  const entries = await glob(isScanTarget ? globs : [from], {
203
204
  cwd,
204
205
  absolute: true,
205
- ignore: ["**/node_modules/**"],
206
+ ignore: needCheckNodeMoudules ? void 0 : ["**/node_modules/**"],
206
207
  expandDirectories: false
207
208
  });
208
209
  await parseApply(root, uno, directiveMap.apply);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/postcss",
3
3
  "type": "module",
4
- "version": "66.1.0-beta.12",
4
+ "version": "66.1.0-beta.13",
5
5
  "description": "PostCSS plugin for UnoCSS",
6
6
  "author": "sibbng <sibbngheid@gmail.com>",
7
7
  "license": "MIT",
@@ -57,9 +57,9 @@
57
57
  "css-tree": "^3.1.0",
58
58
  "postcss": "^8.5.3",
59
59
  "tinyglobby": "^0.2.12",
60
- "@unocss/config": "66.1.0-beta.12",
61
- "@unocss/rule-utils": "66.1.0-beta.12",
62
- "@unocss/core": "66.1.0-beta.12"
60
+ "@unocss/config": "66.1.0-beta.13",
61
+ "@unocss/rule-utils": "66.1.0-beta.13",
62
+ "@unocss/core": "66.1.0-beta.13"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "unbuild",