Problem
In src/utils/cssProcessor.ts, the CSS beautifier attempts to traverse the AST prelude children using prelude.children?.map(...).join or similar. However, certain prelude structures (like SelectorList) do not expose children as direct arrays or map-safe properties, causing crashes like children?.map(...).join is not a function or writing incorrect output formats.
Suggestion
Verify prelude node types or check if .toArray() is required on the csso AST structures before mapping them.
Problem
In
src/utils/cssProcessor.ts, the CSS beautifier attempts to traverse the AST prelude children usingprelude.children?.map(...).joinor similar. However, certain prelude structures (likeSelectorList) do not expose children as direct arrays or map-safe properties, causing crashes likechildren?.map(...).join is not a functionor writing incorrect output formats.Suggestion
Verify prelude node types or check if
.toArray()is required on the csso AST structures before mapping them.