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.
Go to Latest
class Plugin
import { Plugin } from "https://deno.land/x/bundler@0.6.2/plugins/plugin.ts";

Methods

test(item: Item, context: Context)
interface Plugin
import { type Plugin } from "https://deno.land/x/bundler@0.6.2/plugins/plugin.ts";

Methods

test(item: Item, context: Context): Promise<Boolean>
optional
readSource(input: string, context: Context): Promise<Source>
optional
transformSource(
bundleInput: string,
item: Item,
context: Context,
): Promise<Source>
optional
createAsset(item: Item, context: Context): Promise<Asset>
optional
createChunk(
item: Item,
context: Context,
chunkList: ChunkList,
): Promise<Chunk>
optional
createBundle(chunk: Chunk, context: Context): Promise<Source | void>
optional
optimizeBundle(output: string, context: Context): Promise<Source>