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

Function Once

test/css-syntax-error.test.ts:386–390  ·  view source on GitHub ↗
(css)

Source from the content-addressed store, hash-verified

384test('set source plugin automatically', async () => {
385 let plugin: Plugin = {
386 Once(css) {
387 if (css.first) {
388 throw css.first.error('Error')
389 }
390 },
391 postcssPlugin: 'test-plugin'
392 }
393

Callers

nothing calls this directly

Calls 1

errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…