MCPcopy Index your code
hub / github.com/postcss/postcss / prepare

Function prepare

test/visitor.test.ts:729–738  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

727 },
728 postcssPlugin: 'test',
729 prepare(result) {
730 return {
731 Once() {
732 root = true
733 },
734 Rule(rule) {
735 rule.selector = basename(result.opts.from ?? '')
736 }
737 }
738 }
739 }
740 is(
741 postcss([plugin]).process('a{ color: black }', { from: 'a.css' }).css,

Callers

nothing calls this directly

Calls 2

replaceWithMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…