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

Method load

packages/vite/src/node/server/pluginContainer.ts:1285–1292  ·  view source on GitHub ↗
(
    id: string,
    options?: {
      ssr?: boolean
    },
  )

Source from the content-addressed store, hash-verified

1283 }
1284
1285 async load(
1286 id: string,
1287 options?: {
1288 ssr?: boolean
1289 },
1290 ): Promise<LoadResult | null> {
1291 return this._getPluginContainer(options).load(id)
1292 }
1293
1294 async transform(
1295 code: string,

Callers

nothing calls this directly

Calls 2

_getPluginContainerMethod · 0.95
loadMethod · 0.45

Tested by

no test coverage detected