import type * as d from '../../declarations' ; import { getScopeId } from '../style/scope-css' ; export const generateModuleGraph = ( cmps , bundleModules ) => { const cmpMap = new Map < string , string [ ] > ( ) ; cmps . forEach ( ( cmp ) => { const bundle = bundleModules . find ( ( b ) => b . cmps . includes ( cmp ) ) ; if ( bundle ) { cmpMap . set ( getScopeId ( cmp . tagName ) , bundle . rollupResult . imports ) ; } } ) ; return cmpMap ; } ;