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

Function createIsOptimizedDepFile

packages/vite/src/node/optimizer/index.ts:985–990  ·  view source on GitHub ↗
(
  environment: Environment,
)

Source from the content-addressed store, hash-verified

983}
984
985export function createIsOptimizedDepFile(
986 environment: Environment,
987): (id: string) => boolean {
988 const depsCacheDirPrefix = getDepsCacheDirPrefix(environment)
989 return (id) => id.startsWith(depsCacheDirPrefix)
990}
991
992export function createIsOptimizedDepUrl(
993 environment: Environment,

Callers 2

createDepsOptimizerFunction · 0.90

Calls 1

getDepsCacheDirPrefixFunction · 0.85

Tested by

no test coverage detected