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

Function has

packages/vite/src/node/server/mixedModuleGraph.ts:553–561  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

551 return this.keys()
552 },
553 has(key) {
554 if (!key.id) {
555 return false
556 }
557 const keyModule = moduleGraph
558 ._getModuleGraph(module.environment)
559 .getModuleById(key.id)
560 return keyModule !== undefined && module[prop].has(keyModule)
561 },
562 values() {
563 return this.keys()
564 },

Callers

nothing calls this directly

Calls 3

_getModuleGraphMethod · 0.80
hasMethod · 0.80
getModuleByIdMethod · 0.45

Tested by

no test coverage detected