Skip to main content
Deno 2 is finally here 🎉️
Learn more
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-beta.1/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.