@plumeria/unplugin 13.0.0 → 13.0.2
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/core.js +2 -1
- package/dist/core.mjs +2 -1
- package/package.json +2 -2
package/dist/core.js
CHANGED
|
@@ -52,7 +52,8 @@ function cleanStaleThemeRules(acc, newSheets) {
|
|
|
52
52
|
for (const sheet of acc) {
|
|
53
53
|
let hasStaleHash = false;
|
|
54
54
|
for (const hash of hashes) {
|
|
55
|
-
|
|
55
|
+
const declRegex = new RegExp(`--${hash}-[a-zA-Z0-9-]+:`);
|
|
56
|
+
if (declRegex.test(sheet)) {
|
|
56
57
|
hasStaleHash = true;
|
|
57
58
|
break;
|
|
58
59
|
}
|
package/dist/core.mjs
CHANGED
|
@@ -16,7 +16,8 @@ function cleanStaleThemeRules(acc, newSheets) {
|
|
|
16
16
|
for (const sheet of acc) {
|
|
17
17
|
let hasStaleHash = false;
|
|
18
18
|
for (const hash of hashes) {
|
|
19
|
-
|
|
19
|
+
const declRegex = new RegExp(`--${hash}-[a-zA-Z0-9-]+:`);
|
|
20
|
+
if (declRegex.test(sheet)) {
|
|
20
21
|
hasStaleHash = true;
|
|
21
22
|
break;
|
|
22
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/unplugin",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.2",
|
|
4
4
|
"description": "Universal Plumeria plugin for various build tools",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
],
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"unplugin": "^3.0.0",
|
|
89
|
-
"@plumeria/utils": "^13.0.
|
|
89
|
+
"@plumeria/utils": "^13.0.2"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"@rollup/pluginutils": "^5.4.0",
|