MCPcopy Create free account
hub / github.com/doesdev/rollup-plugin-analyzer / hasMatch

Function hasMatch

test/test.js:128–128  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

126 const bundle = await rollup(opts)
127 const noMatch = (m) => m.id.indexOf('jimmy') !== -1
128 const hasMatch = (m) => m.id.indexOf(importB) !== -1
129 assert.is((await analyze(bundle, { filter: noMatch })).modules.length, 0)
130 assert.is((await analyze(bundle, { filter: hasMatch })).modules.length, 1)
131 })

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…