Skip to main content
Module

x/bundler/bundler.ts>Bundler

A Bundler with the web in mind.
Go to Latest
class Bundler
import { Bundler } from "https://deno.land/x/bundler@0.6.5/bundler.ts";

Constructors

new
Bundler(plugins: Plugin[], unnamed 1?: { logLevel?: LogLevel; quiet?: boolean; })

Properties

logger: Logger
plugins: Plugin[]

Methods

private
createCacheFilePath(
bundleInput: string,
input: string,
cacheDirPath: string,
)
bundle(inputs: string[], options?: BundleOptions)
createAsset(item: Item, context: Context): Promise<Asset>
createBundle(chunk: Chunk, context: Context)
createBundles(
chunks: Chunks,
graph: Graph,
)
createChunk(
item: Item,
context: Context,
chunkList: ChunkList,
)
createChunks(
inputs: Inputs,
graph: Graph,
)
createGraph(inputs: Inputs, options?: CreateGraphOptions)
getCache(
bundleInput: string,
input: string,
context: Context,
)
hasCache(
bundleInput: string,
input: string,
context: Context,
)

returns true if an entry exists in context.cache or cacheFile mtime is bigger than sourceFile mtime

optimizeBundle(chunk: Chunk, context: Context)
readSource(item: Item, context: Context): Promise<Source>
setCache(
bundleInput: string,
input: string,
source: string,
context: Context,
)
transformSource(
bundleInput: string,
item: Item,
context: Context,
)