Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/compiler_imports.ts>processImports

A modern runtime for JavaScript and TypeScript.
Go to Latest
function processImports
import { processImports } from "https://deno.land/x/deno@v0.30.0/cli/js/compiler_imports.ts";

Recursively process the imports of modules, generating SourceFiles of any imported files.

Specifiers are supplied in an array of tuples where the first is the specifier that will be requested in the code and the second is the specifier that should be actually resolved.

Parameters

specifiers: Array<[string, string]>
optional
referrer: string

Returns

Promise<string[]>