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

Function transform

packages/vite/src/node/server/__tests__/pluginContainer.spec.ts:34–41  ·  view source on GitHub ↗
(_code, id)

Source from the content-addressed store, hash-verified

32 }
33 },
34 transform(_code, id) {
35 if (id === entryUrl) {
36 const { meta } = this.getModuleInfo(entryUrl) ?? {}
37 metaArray.push(meta)
38
39 return { meta: { x: 3 } }
40 }
41 },
42 buildEnd() {
43 const { meta } = this.getModuleInfo(entryUrl) ?? {}
44 metaArray.push(meta)

Callers 1

nextFunction · 0.50

Calls 2

getModuleInfoMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected