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

Function handler

packages/vite/src/node/build.ts:1376–1383  ·  packages/vite/src/node/build.ts::handler
(id, importer, options)

Source from the content-addressed store, hash-verified

1374
1375 const fn = getHookHandler(hook)
1376 const handler: Plugin[class="st">'resolveId'] = function (id, importer, options) {
1377 return fn.call(
1378 injectEnvironmentInContext(this, environment),
1379 id,
1380 importer,
1381 injectSsrFlag(options, environment, pluginName),
1382 )
1383 }
1384
1385 if (class="st">'handler' in hook) {
1386 return wrapHookObject(hook, handler)

Callers 2

createExecHandlersFunction · 0.50
createHMRHandlerFunction · 0.50

Calls 3

injectSsrFlagFunction · 0.85
injectChunkMetadataFunction · 0.85

Tested by

no test coverage detected