astro-tractstack 2.0.25 → 2.0.26
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/package.json
CHANGED
|
@@ -518,11 +518,9 @@ export function extractClassesFromNodes(dirtyNodes: BaseNode[]): string[] {
|
|
|
518
518
|
}
|
|
519
519
|
|
|
520
520
|
// Extract from gridCss arrays
|
|
521
|
-
if ('gridCss' in node &&
|
|
522
|
-
node.gridCss.forEach((
|
|
523
|
-
|
|
524
|
-
if (className.trim()) uniqueClasses.add(className.trim());
|
|
525
|
-
});
|
|
521
|
+
if ('gridCss' in node && typeof node.gridCss === 'string') {
|
|
522
|
+
node.gridCss.split(' ').forEach((className: string) => {
|
|
523
|
+
if (className.trim()) uniqueClasses.add(className.trim());
|
|
526
524
|
});
|
|
527
525
|
}
|
|
528
526
|
});
|