Struct deno_graph::GraphImport
source · pub struct GraphImport {
pub dependencies: IndexMap<String, Dependency>,
}
Expand description
Provides a way for imports, through configuration, to be imported to the module graph without requiring the dependencies to be analyzed. This is intended to be used for importing type dependencies or other externally defined dependencies, like JSX runtimes.
Fields§
§dependencies: IndexMap<String, Dependency>
A map of resolved dependencies, where the key is the value originally provided for the import and the value is the resolved dependency.
Implementations§
source§impl GraphImport
impl GraphImport
pub fn new( referrer: &ModuleSpecifier, imports: Vec<String>, maybe_resolver: Option<&dyn Resolver>, maybe_npm_resolver: Option<&dyn NpmResolver> ) -> Self
Trait Implementations§
source§impl Clone for GraphImport
impl Clone for GraphImport
source§fn clone(&self) -> GraphImport
fn clone(&self) -> GraphImport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GraphImport
impl Debug for GraphImport
Auto Trait Implementations§
impl RefUnwindSafe for GraphImport
impl Send for GraphImport
impl Sync for GraphImport
impl Unpin for GraphImport
impl UnwindSafe for GraphImport
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more