/
6gcats
/
6GC
Обзор
Документация
Войти
/
6gcats
/
6GC
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
node_modules/tailwindcss/src/util/parseObjectStyles.js
19 строк
429 B
reis
final version
15 янв 2025, 21:15
15 янв 2025, 21:15
20bd4c3
Код
Авторство
О чём код?
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 }) }