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

x/pagic/src/utils/mod.ts>importDefault

A static site generator powered by Deno + React
Go to Latest
function importDefault
import { importDefault } from "https://deno.land/x/pagic@v1.6.2/src/utils/mod.ts";

Replacement of dynamic import default

Type Parameters

optional
T = any

Parameters

importPath: string
optional
options: ImportOptions = [UNSUPPORTED]

Returns

Promise<T>