MCPcopy
hub / github.com/vitejs/vite / getMatcherString

Function getMatcherString

packages/vite/src/node/plugins/pluginFilter.ts:27–34  ·  view source on GitHub ↗
(glob: string, cwd: string)

Source from the content-addressed store, hash-verified

25}
26
27function getMatcherString(glob: string, cwd: string) {
28 if (glob.startsWith('**') || path.isAbsolute(glob)) {
29 return slash(glob)
30 }
31
32 const resolved = path.join(cwd, glob)
33 return slash(resolved)
34}
35
36function patternToIdFilter(
37 pattern: string | RegExp,

Callers 1

patternToIdFilterFunction · 0.85

Calls 1

slashFunction · 0.90

Tested by

no test coverage detected