/
ai_sampletext
/
DiplomWork
Обзор
Документация
Войти
/
ai_sampletext
/
DiplomWork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/tailwindcss/src/util/parseObjectStyles.js
19 строк
429 B
boolyshareyo
Initial commit
08 июн 2026, 16:00
08 июн 2026, 16:00
6216a29
Код
Авторство
О чём код?
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 }) }