MCPcopy
hub / github.com/Automattic/juice / parseRoot

Function parseRoot

lib/utils.js:18–23  ·  view source on GitHub ↗
(css, { strict = false } = {})

Source from the content-addressed store, hash-verified

16const nestingProcessor = postcss([nesting()]);
17
18function parseRoot(css, { strict = false } = {}) {
19 return nestingProcessor.process(css, {
20 parser: strict ? undefined : safeParser,
21 from: undefined,
22 }).root;
23}
24
25/**
26 * Returns an array of the selectors.

Callers 3

parseCSSFunction · 0.85
getPreservedTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…