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

Method ssrLoadModule

packages/vite/src/node/server/index.ts:388–388  ·  view source on GitHub ↗

* Load a given URL as an instantiated module for SSR.

(
    url: string,
    opts?: { fixStacktrace?: boolean },
  )

Source from the content-addressed store, hash-verified

386 * Load a given URL as an instantiated module for SSR.
387 */
388 ssrLoadModule(
389 url: string,
390 opts?: { fixStacktrace?: boolean },
391 ): Promise<Record<string, any>>

Callers 15

runTestFunction · 0.80
createServerFunction · 0.80
runTestFunction · 0.80
test-stacktrace.jsFile · 0.80
createServerFunction · 0.80
createServerFunction · 0.80
createServerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected