fn load(&mut self, specifier: &ModuleSpecifier, is_dynamic: bool) {
    if !self.graph.modules.contains_key(specifier) {
      self
        .graph
        .modules
        .insert(specifier.clone(), ModuleSlot::Pending);
      let f: LoadFuture = if specifier.scheme() == "data" {
        let load_response = load_data_url(specifier);
        Box::pin(future::ready((specifier.clone(), load_response)))
      } else {
        self.loader.load(specifier, is_dynamic)
      };
      self.pending.push(f);
    }
  }
/// Enqueue a request to load the specifier via the loader.
Enqueue a request to load the specifier via the loader.
Enqueue a request to load the specifier via the loader .
fn load(&mut self, specifier: &ModuleSpecifier, is_dynamic: bool) {
    if !self.graph.modules.contains_key(specifier) {
      self
        .graph
        .modules
        .insert(specifier.clone(), ModuleSlot::Pending);
      let f: LoadFuture = if specifier.scheme() == "data" {
        let load_response = load_data_url(specifier);
        Box::pin(future::ready((specifier.clone(), load_response)))
      } else {
        self.loader.load(specifier, is_dynamic)
      };
      self.pending.push(f);
    }
  }
fn load ( & mut self , specifier : & ModuleSpecifier , is_dynamic : bool ) { if ! self . graph . modules . contains_key ( specifier ) { self . graph . modules . insert ( specifier . clone ( ) , ModuleSlot :: Pending ) ; let f : LoadFuture = if specifier . scheme ( ) == " " { let load_response = load_data_url ( specifier ) ; Box :: pin ( future :: ready ( ( specifier . clone ( ) , load_response ) ) ) } else { self . loader . load ( specifier , is_dynamic ) } ; self . pending . push ( f ) ; } }
Enqueue a request to load the specifier via the loader.
Enqueue a request to load the specifier via the loader .
&mut self
specifier
&ModuleSpecifier
is_dynamic
bool
&mut self
specifier
&ModuleSpecifier
is_dynamic
bool