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

Function resolvedAllowDir

packages/vite/src/node/server/index.ts:1160–1162  ·  view source on GitHub ↗
(root: string, dir: string)

Source from the content-addressed store, hash-verified

1158}
1159
1160function resolvedAllowDir(root: string, dir: string): string {
1161 return normalizePath(path.resolve(root, dir))
1162}
1163
1164const _serverConfigDefaults = Object.freeze({
1165 port: DEFAULT_DEV_PORT,

Callers 1

resolveServerOptionsFunction · 0.85

Calls 2

normalizePathFunction · 0.90
resolveMethod · 0.65

Tested by

no test coverage detected