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

Method resolveId

packages/vite/src/node/server/pluginContainer.ts:1265–1283  ·  view source on GitHub ↗
(
    rawId: string,
    importer?: string,
    options?: {
      attributes?: Record<string, string>
      custom?: CustomPluginOptions
      /** @deprecated use `skipCalls` instead */
      skip?: Set<Plugin>
      skipCalls?: readonly SkipInformation[]
      ssr?: boolean
      /**
       * @internal
       */
      scan?: boolean
      isEntry?: boolean
    },
  )

Source from the content-addressed store, hash-verified

1263 }
1264
1265 async resolveId(
1266 rawId: string,
1267 importer?: string,
1268 options?: {
1269 attributes?: Record<string, string>
1270 custom?: CustomPluginOptions
1271 /** @deprecated use `skipCalls` instead */
1272 skip?: Set<Plugin>
1273 skipCalls?: readonly SkipInformation[]
1274 ssr?: boolean
1275 /**
1276 * @internal
1277 */
1278 scan?: boolean
1279 isEntry?: boolean
1280 },
1281 ): Promise<PartialResolvedId | null> {
1282 return this._getPluginContainer(options).resolveId(rawId, importer, options)
1283 }
1284
1285 async load(
1286 id: string,

Callers 11

resolveFunction · 0.45
resolveAliasFunction · 0.45
resolveMethod · 0.45
constructorMethod · 0.45
doTransformFunction · 0.45
resolve.spec.tsFile · 0.45
runFunction · 0.45
index.spec.tsFile · 0.45
resolvePathFunction · 0.45
resolveIdFunction · 0.45

Calls 1

_getPluginContainerMethod · 0.95

Tested by 1

runFunction · 0.36