// build dependency graph via entry modules.
build dependency graph via entry modules.
build dependency graph via entry modules .
pub fn generate_module_graph(&mut self) {
    self.entry_modules = self.module_loader.borrow_mut().add_entry_modules(
      &normalize_entry_modules(self.options.borrow().input.clone()),
      true,
    );
    self
      .module_loader
      .borrow()
      .modules_by_id
      .values()
      .for_each(|mod_or_ext| match mod_or_ext {
        ModOrExt::Ext(module) => {
          self.external_modules.push(module.clone());
        }
        ModOrExt::Mod(module) => {
          self.modules.push(module.clone());
        }
      });
  }
pub fn generate_module_graph ( & mut self ) { self . entry_modules = self . module_loader . borrow_mut ( ) . add_entry_modules ( & normalize_entry_modules ( self . options . borrow ( ) . input . clone ( ) ) , true , ) ; self . module_loader . borrow ( ) . modules_by_id . values ( ) . for_each ( | mod_or_ext | match mod_or_ext { ModOrExt :: Ext ( module ) => { self . external_modules . push ( module . clone ( ) ) ; } ModOrExt :: Mod ( module ) => { self . modules . push ( module . clone ( ) ) ; } } ) ; }
build dependency graph via entry modules.
build dependency graph via entry modules .
&mut self