Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fed_dev/plugins/plugin.ts>Plugin

A Bundler with the web in mind.
Latest
class Plugin
Abstract
import { Plugin } from "https://deno.land/x/fed_dev@0.9.0/plugins/plugin.ts";

Constructors

new
Plugin()

Methods

protected
readSource(input: string, _context: CreateAssetContext): Promise<Source>
optional
createAsset(
input: string,
): Promise<Asset> | Asset
optional
createBundle(chunk: Chunk, context: CreateBundleContext): Promise<Bundle> | Bundle
optional
createChunk(
asset: Asset,
chunkAssets: Set<Asset>,
): Promise<Chunk> | Chunk
createOutput(
input: string,
root: string,
extension: string,
)
createSource(input: string, context: CreateAssetContext): Promise<Source>
optional
getSource(
input: string,
): Promise<Source> | Source
optional
optimizeSource(source: Source): Promise<Source> | Source
splitAssetDependencies(_asset: Asset, _context: CreateChunkContext): Promise<Item[]> | Item[]
abstract
test(
input: string,
): Promise<boolean> | boolean