Skip to main content
Module

x/aleph/types.ts>Plugin

The Full-stack Framework in Deno.
Go to Latest
interface Plugin
import { type Plugin } from "https://deno.land/x/aleph@v0.2.21/types.ts";

A plugin for Aleph.js application.

Properties

optional
name: string

name gives the plugin a name.

test: RegExp

test matches the import url.

optional
acceptHMR: boolean

acceptHMR accepts the HMR.

Methods

optional
resolve(url: string): { url: string; external?: boolean; }

resolve resolves the import url, if the external returned the compilation will skip the import url.

optional
transform(content: Uint8Array, url: string): Promise<{ code: string; map?: string; loader?:
| "js"
| "ts"
| "css"
| "markdown"
; }>

transform transforms the source content.