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

Function findAllEntrypoints

packages/vite/src/module-runner/hmrHandler.ts:121–131  ·  view source on GitHub ↗
(
  runner: ModuleRunner,
  entrypoints = new Set<string>(),
)

Source from the content-addressed store, hash-verified

119}
120
121function findAllEntrypoints(
122 runner: ModuleRunner,
123 entrypoints = new Set<string>(),
124): Set<string> {
125 for (const mod of runner.evaluatedModules.idToModuleMap.values()) {
126 if (!mod.importers.size) {
127 entrypoints.add(mod.url)
128 }
129 }
130 return entrypoints
131}

Callers 1

Calls 1

addMethod · 0.80

Tested by

no test coverage detected