Skip to main content
Module

x/deno_graph/loader.ts>load

The module graph logic for Deno CLI
Go to Latest
function load
import { load } from "https://deno.land/x/deno_graph@0.61.1/loader.ts";

A Deno specific loader function that can be passed to the createModuleGraph which will use Deno.readTextFile for local files, or use fetch() for remote modules.

Parameters

specifier: string

The string module specifier from the module graph.

Returns

Promise<LoadResponse | undefined>