Skip to main content
Go to Latest
method graph.ModuleGraph.prototype.resolveDependency
Re-export
import { graph } from "https://deno.land/x/cav@0.0.21/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