Skip to main content
Module

x/mesozoic/lib/deps.ts>parseModule

A generic build system for Deno web apps
Go to Latest
function parseModule
import { parseModule } from "https://deno.land/x/mesozoic@v1.0.0-alpha.41/lib/deps.ts";

Outputs the list of exports and locations of import specifiers, including dynamic import and import meta handling.

Parameters

source: string

Source code to parser

optional
name: string

Optional sourcename

Returns

readonly [ReadonlyArray<ImportSpecifier>, ReadonlyArray<ExportSpecifier>, boolean]

Tuple contaning imports list and exports list.