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

Function addServerModule

packages/vite/src/node/server/__tests__/moduleGraph.spec.ts:56–57  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

54 clientModuleGraph.getModuleById(url)
55
56 const addServerModule = (url: string) =>
57 ssrModuleGraph.ensureEntryFromUrl(url)
58 const getServerModule = (url: string) => ssrModuleGraph.getModuleById(url)
59
60 const clientModule1 = await addBrowserModule('/1.js')

Callers 1

Calls 1

ensureEntryFromUrlMethod · 0.45

Tested by

no test coverage detected