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

Function load

packages/vite/src/node/server/__tests__/pluginContainer.spec.ts:26–33  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

24 }
25 },
26 load(id) {
27 if (id === entryUrl) {
28 const { meta } = this.getModuleInfo(entryUrl) ?? {}
29 metaArray.push(meta)
30
31 return { code: 'export {}', meta: { x: 2 } }
32 }
33 },
34 transform(_code, id) {
35 if (id === entryUrl) {
36 const { meta } = this.getModuleInfo(entryUrl) ?? {}

Callers

nothing calls this directly

Calls 3

debugMethod · 0.65
errorMethod · 0.65
getModuleInfoMethod · 0.45

Tested by

no test coverage detected