import { DiffResults } from '../../types/DiffResults' ; import diffModuleNode from './diffModuleNode' ; import { EnhancedModuleGraph } from './EnhancedModuleGraph' ; export default function diffGraph ( baselineGraph , comparisonGraph , results ) { const allModules = new Set ( [ ... baselineGraph . getAllModuleNames ( ) , ... comparisonGraph . getAllModuleNames ( ) , ] ) ; for ( let moduleName of allModules ) { diffModuleNode ( baselineGraph , comparisonGraph , moduleName , results ) ; } }