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

Function resolveSubpathImports

packages/vite/src/node/plugins/resolve.ts:354–360  ·  view source on GitHub ↗
(id, importer, isRequire, scan)

Source from the content-addressed store, hash-verified

352 return newResolvedId === resolvedId ? undefined : newResolvedId
353 },
354 resolveSubpathImports(id, importer, isRequire, scan) {
355 return resolveSubpathImports(id, importer, {
356 ...options,
357 isRequire: resolveOptions.isRequire ?? isRequire,
358 scan,
359 })
360 },
361
362 ...(partialEnv.config.command === 'serve' || isJsPluginContainer
363 ? {

Callers

nothing calls this directly

Calls 3

findNearestPackageDataFunction · 0.90
splitFileAndPostfixFunction · 0.90
resolveExportsOrImportsFunction · 0.85

Tested by

no test coverage detected