persona-community-5/.pnpm-store/v3/files/a9/99e2f41d17f6a193e537dcd32ab55ffff97e5f7ff765aa45701e329849a5474e6a6ecc337c2869eb8566c4809c6af3e94d43d9a662f6a2f3bf8c43827dc5d7
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

20 lines
429 B
Plaintext

import postcss from 'postcss'
import postcssNested from 'postcss-nested'
import postcssJs from 'postcss-js'
export default function parseObjectStyles(styles) {
if (!Array.isArray(styles)) {
return parseObjectStyles([styles])
}
return styles.flatMap((style) => {
return postcss([
postcssNested({
bubble: ['screen'],
}),
]).process(style, {
parser: postcssJs,
}).root.nodes
})
}