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

Function isScannable

packages/vite/src/node/optimizer/scan.ts:790–797  ·  view source on GitHub ↗
(id: string, extensions: string[] | undefined)

Source from the content-addressed store, hash-verified

788}
789
790function isScannable(id: string, extensions: string[] | undefined): boolean {
791 return (
792 JS_TYPES_RE.test(id) ||
793 htmlTypesRE.test(id) ||
794 extensions?.includes(path.extname(id)) ||
795 false
796 )
797}

Callers 2

computeEntriesFunction · 0.85
resolveIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected