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

Function areAllImportsAccepted

packages/vite/src/node/server/hmr.ts:787–797  ·  view source on GitHub ↗
(
  importedBindings: Set<string>,
  acceptedExports: Set<string>,
)

Source from the content-addressed store, hash-verified

785}
786
787function areAllImportsAccepted(
788 importedBindings: Set<string>,
789 acceptedExports: Set<string>,
790) {
791 for (const binding of importedBindings) {
792 if (!acceptedExports.has(binding)) {
793 return false
794 }
795 }
796 return true
797}
798
799function propagateUpdate(
800 node: EnvironmentModuleNode,

Callers 1

propagateUpdateFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected