@plumeria/utils 18.3.8 → 18.3.10

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/parser.js +4 -2
  2. package/package.json +1 -1
package/dist/parser.js CHANGED
@@ -1871,8 +1871,10 @@ function extractOndemandStyles(obj, extractedSheets, t) {
1871
1871
  walk(t.createObjectTable[hash]);
1872
1872
  }
1873
1873
  }
1874
- for (const [, varName] of val.matchAll(CUSTOM_PROPERTY)) {
1875
- usedVariables.add(varName);
1874
+ if (val.includes('var(')) {
1875
+ for (const [, varName] of val.matchAll(CUSTOM_PROPERTY)) {
1876
+ usedVariables.add(varName);
1877
+ }
1876
1878
  }
1877
1879
  }
1878
1880
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/utils",
3
- "version": "18.3.8",
3
+ "version": "18.3.10",
4
4
  "description": "Plumeria Utils",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",