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

x/pagic/src/utils/import.ts>import_

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

Replacement of dynamic import, enable cache by default, support reload options

Type Parameters

optional
T = any

Parameters

importPath: string
optional
options: ImportOptions = [UNSUPPORTED]

Returns

Promise<T>