Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/levo/src/get-local-dependencies.ts>getLocalDependencies

Server side rendering with The Elm Architecture in Deno
Latest
variable getLocalDependencies
import { getLocalDependencies } from "https://deno.land/x/levo@v0.0.27/src/get-local-dependencies.ts";

Get the local dependencies of a Typescript file, not including remote dependencies (e.g. files that are imported from https://deno.land).

The resulting paths will be relative to the current working directory.

type

(unnamed 0: { filename: string; importMap?: Record<string, string>; truncateCommonPrefix?: boolean; }) => Promise<string[]>