MCPcopy
hub / github.com/postcss/postcss / Once

Function Once

test/result.test.ts:19–21  ·  view source on GitHub ↗
(css, { result })

Source from the content-addressed store, hash-verified

17 let warning
18 let plugin: Plugin = {
19 Once(css, { result }) {
20 warning = result.warn('test', { node: css.first })
21 },
22 postcssPlugin: 'test-plugin'
23 }
24 let result = postcss([plugin]).process('a{}').sync()

Callers

nothing calls this directly

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…