UNPKG

@aplus-frontend/ui

Version:

14 lines (13 loc) 366 B
const t = (r) => { r.type === "rule" && Array.isArray(r.props) && (r.props = r.props.map((p) => { const s = p.trim().split(/\s+/); if (s.length >= 2) { const i = s[0], o = s[1]; /^\.css-dev-only-[a-z0-9]+$/.test(i) && (s[0] = `:where(${i})${o}`, s.splice(1, 1)); } return s.join(" "); })); }; export { t as downSpecificityPlugin };