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

Function resolveId

packages/vite/src/node/ssr/__tests__/ssrLoadModule.spec.ts:80–84  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

78 {
79 name: 'virtual-test',
80 resolveId(id) {
81 if (id === 'virtual:test') {
82 return '\0virtual:test'
83 }
84 },
85 load(id) {
86 if (id === '\0virtual:test') {
87 return `

Callers

nothing calls this directly

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected