@plumeria/webpack-plugin 0.22.2 → 0.22.3
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/index.js +6 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -86,18 +86,17 @@ class PlumeriaPlugin {
|
|
|
86
86
|
return '';
|
|
87
87
|
}
|
|
88
88
|
const sortedStyles = allStyles.sort((a, b) => (b.lastAccessed || 0) - (a.lastAccessed || 0));
|
|
89
|
-
const latestStyles = sortedStyles[0];
|
|
90
89
|
const keyframeStylesSet = new Set();
|
|
91
90
|
const viewTransitionStylesSet = new Set();
|
|
92
91
|
const tokenStylesSet = new Set();
|
|
93
92
|
const baseStylesSet = new Set();
|
|
94
|
-
if (latestStyles.keyframeStyles?.trim().length > 0)
|
|
95
|
-
keyframeStylesSet.add(latestStyles.keyframeStyles);
|
|
96
|
-
if (latestStyles.viewTransitionStyles?.trim().length > 0)
|
|
97
|
-
viewTransitionStylesSet.add(latestStyles.viewTransitionStyles);
|
|
98
|
-
if (latestStyles.tokenStyles?.trim().length > 0)
|
|
99
|
-
tokenStylesSet.add(latestStyles.tokenStyles);
|
|
100
93
|
for (const s of sortedStyles) {
|
|
94
|
+
if (s.keyframeStyles?.trim().length > 0)
|
|
95
|
+
keyframeStylesSet.add(s.keyframeStyles);
|
|
96
|
+
if (s.viewTransitionStyles?.trim().length > 0)
|
|
97
|
+
viewTransitionStylesSet.add(s.viewTransitionStyles);
|
|
98
|
+
if (s.tokenStyles?.trim().length > 0)
|
|
99
|
+
tokenStylesSet.add(s.tokenStyles);
|
|
101
100
|
if (s.baseStyles?.trim().length > 0)
|
|
102
101
|
baseStylesSet.add(s.baseStyles);
|
|
103
102
|
}
|