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

x/bundler/plugins/plugin.ts>Plugin

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

Methods

optional
createAsset(
input: string,
bundler?: Bundler,
): Promise<Asset> | Asset
optional
createBundle(
chunk: Chunk,
source: Source,
bundler?: Bundler,
): Promise<Bundle> | Bundle
optional
createChunk(
asset: Asset,
chunkAssets: Set<Asset>,
bundler?: Bundler,
): Promise<Chunk> | Chunk
createOutput(
input: string,
root: string,
extension: string,
)
createSource(
input: string,
bundler?: Bundler,
): Promise<Source>
optional
optimizeBundle(source: Source): Promise<Source> | Source
readSource(
input: string,
_bundler?: Bundler,
_options?: CreateAssetOptions,
): Promise<Source>
splitDependencies(
_asset: Asset,
_bundler: Bundler,
): Promise<Item[]> | Item[]
abstract
test(
input: string,
): Promise<boolean> | boolean