@plumeria/utils 18.3.10 → 18.3.11
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/parser.js +17 -15
- package/package.json +1 -1
package/dist/parser.js
CHANGED
|
@@ -1852,23 +1852,25 @@ function extractOndemandStyles(obj, extractedSheets, t) {
|
|
|
1852
1852
|
visited.add(n);
|
|
1853
1853
|
Object.values(n).forEach((val) => {
|
|
1854
1854
|
if (typeof val === 'string') {
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
if (
|
|
1858
|
-
keyframesHashes.
|
|
1859
|
-
|
|
1855
|
+
if (val.includes('kf-') || val.includes('vt-') || val.includes('cr-')) {
|
|
1856
|
+
for (const [, kind, hash] of val.matchAll(REFERENCE_MARKER)) {
|
|
1857
|
+
if (kind === 'kf') {
|
|
1858
|
+
if (!keyframesHashes.has(hash) && t.keyframesObjectTable[hash]) {
|
|
1859
|
+
keyframesHashes.add(hash);
|
|
1860
|
+
walk(t.keyframesObjectTable[hash]);
|
|
1861
|
+
}
|
|
1860
1862
|
}
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1863
|
+
else if (kind === 'vt') {
|
|
1864
|
+
if (!viewTransitionHashes.has(hash) &&
|
|
1865
|
+
t.viewTransitionObjectTable[hash]) {
|
|
1866
|
+
viewTransitionHashes.add(hash);
|
|
1867
|
+
walk(t.viewTransitionObjectTable[hash]);
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
else if (!createHashes.has(hash) && t.createObjectTable[hash]) {
|
|
1871
|
+
createHashes.add(hash);
|
|
1872
|
+
walk(t.createObjectTable[hash]);
|
|
1867
1873
|
}
|
|
1868
|
-
}
|
|
1869
|
-
else if (!createHashes.has(hash) && t.createObjectTable[hash]) {
|
|
1870
|
-
createHashes.add(hash);
|
|
1871
|
-
walk(t.createObjectTable[hash]);
|
|
1872
1874
|
}
|
|
1873
1875
|
}
|
|
1874
1876
|
if (val.includes('var(')) {
|