Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method graph.ModuleGraph.prototype.resolveDependency
Re-export
import { graph } from "https://deno.land/x/cav@0.0.24/deps.ts";
const { ModuleGraph } = graph;

Given a string specifier of a module's dependency and the referring module's string URL, return the string URL of the dependency, otherwise return undefined.

Parameters

specifier: string
referrer: string

Returns

string | undefined