Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.40/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.