MCPcopy
hub / github.com/nuxt/nuxt / resolveAlias

Function resolveAlias

packages/kit/src/resolve.ts:93–96  ·  view source on GitHub ↗
(path: string, alias?: Record<string, string>)

Source from the content-addressed store, hash-verified

91 * Resolve path aliases respecting Nuxt alias options
92 */
93export function resolveAlias (path: string, alias?: Record<string, string>): string {
94 alias ||= tryUseNuxt()?.options.alias || {}
95 return _resolveAlias(path, alias)
96}
97
98export interface Resolver {
99 resolve (...path: string[]): string

Callers 15

setupFunction · 0.90
normalizeDirsFunction · 0.90
_resolvePathFunction · 0.90
_resolvePathFunction · 0.90
enterFunction · 0.90
processImportsFunction · 0.90
resolveIdFunction · 0.90
handlerFunction · 0.90
setupFunction · 0.90

Calls 1

tryUseNuxtFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…