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

Function resolveId

packages/vite/src/node/optimizer/scan.ts:371–381  ·  view source on GitHub ↗
(
    id: string,
    importer?: string,
    options?: Parameters<EnvironmentPluginContainer['resolveId']>[2],
  )

Source from the content-addressed store, hash-verified

369): Plugin[] {
370 const seen = new Map<string, string | undefined>()
371 async function resolveId(
372 id: string,
373 importer?: string,
374 options?: Parameters<EnvironmentPluginContainer['resolveId']>[2],
375 ): Promise<PartialResolvedId | null> {
376 return environment.pluginContainer.resolveId(
377 id,
378 importer && normalizePath(importer),
379 { scan: true, ...options },
380 )
381 }
382 const resolve = async (
383 id: string,
384 importer?: string,

Callers 1

resolveFunction · 0.70

Calls 11

normalizePathFunction · 0.90
isInNodeModulesFunction · 0.90
isOptimizableFunction · 0.90
moduleListContainsFunction · 0.90
cleanUrlFunction · 0.90
shouldExternalizeDepFunction · 0.85
externalUnlessEntryFunction · 0.85
isScannableFunction · 0.85
resolveFunction · 0.70
resolveMethod · 0.65
resolveIdMethod · 0.45

Tested by

no test coverage detected