MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / tryCleanFsResolve

Function tryCleanFsResolve

packages/vite/src/bridge/resolve.ts:28–39  ·  view source on GitHub ↗
(file: string, preserveSymlinks: boolean)

Source from the content-addressed store, hash-verified

26
27// https://github.com/vitejs/vite/blob/b7ddfae5f852c2948fab03e94751ce56f5f31ce0/packages/vite/src/node/plugins/resolve.ts#L580
28function tryCleanFsResolve(file: string, preserveSymlinks: boolean): string | undefined {
29 if (file.includes('node_modules')) {
30 return tryResolveRealFile(file, preserveSymlinks);
31 }
32
33 const normalizedResolved = tryResolveRealFile(normalizePath(file));
34 if (!normalizedResolved) {
35 return tryResolveRealFile(file, preserveSymlinks);
36 }
37
38 return normalizedResolved;
39}

Callers 1

tryFsResolveFunction · 0.85

Calls 2

tryResolveRealFileFunction · 0.90
includesMethod · 0.80

Tested by

no test coverage detected