Quantumbraid's picture
download
raw
429 Bytes
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
})
}

Xet Storage Details

Size:
429 Bytes
·
Xet hash:
7bbdb1b770758ff74ff837d70608c719c085a047b4496e84b2812facefda3ee7

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.