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

Function moduleListContains

packages/vite/src/node/utils.ts:144–151  ·  view source on GitHub ↗
(
  moduleList: string[] | undefined,
  id: string,
)

Source from the content-addressed store, hash-verified

142}
143
144export function moduleListContains(
145 moduleList: string[] | undefined,
146 id: string,
147): boolean | undefined {
148 return moduleList?.some(
149 (m) => m === id || id.startsWith(withTrailingSlash(m)),
150 )
151}
152
153export function isOptimizable(
154 id: string,

Callers 4

normalizeUrlFunction · 0.90
resolveIdFunction · 0.90
handlerFunction · 0.90
resolveIdFunction · 0.90

Calls 1

withTrailingSlashFunction · 0.90

Tested by

no test coverage detected