Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class DependencyGraph
import { DependencyGraph } from "https://deno.land/x/frugal@0.2.1/packages/core/DependencyGraph.ts";

Class building and handling a dependency graph

Constructors

new
DependencyGraph(graph: graph.DependencyGraph)

Methods

gather(loaders: Loader<unknown>[])

For the passed list of loaders, gather all modules in the dependency graph matching at least one loader.

If an asset matches more than one loader, the first loader in the list wins.

Build a unique module list from the dependency graph

Static Methods

build(entrypoints: URL[], config: graph.Config)

Build a dependency graph from the given entrypoint.