Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
method graph.ModuleGraph.prototype.resolveDependency
Re-export
import { graph } from "https://deno.land/x/cav@0.0.14/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