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

Function areSeparateFolders

packages/vite/src/node/plugins/prepareOutDir.ts:100–108  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

98}
99
100function areSeparateFolders(a: string, b: string) {
101 const na = normalizePath(a)
102 const nb = normalizePath(b)
103 return (
104 na !== nb &&
105 !na.startsWith(withTrailingSlash(nb)) &&
106 !nb.startsWith(withTrailingSlash(na))
107 )
108}

Callers 1

prepareOutDirFunction · 0.85

Calls 2

normalizePathFunction · 0.90
withTrailingSlashFunction · 0.90

Tested by

no test coverage detected