Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/bundler/bundler.ts>Bundler

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

Constructors

new
Bundler(unnamed 0: { plugins: Plugin[]; sourceMap?: SourceMap; logLevel?: number; quiet?: boolean; })

Properties

logger: ConsoleLogger<unknown[]>
plugins: Plugin[]
sourceMap: SourceMap

Methods

createAsset(
input: string,
_bundler?: Bundler,
unnamed 3?: CreateAssetOptions,
)
createAssets(inputs: string[], unnamed 1?: CreateAssetOptions)
createBundle(
chunk: Chunk,
source: Source,
_bundler?: Bundler,
): Promise<Bundle>
createBundles(chunks: Chunk[], unnamed 1?: CreateBundleOptions)
createChunk(
asset: Asset,
chunkAssets: Set<Asset>,
_bundler?: Bundler,
unnamed 3?: CreateChunkOptions,
)
createChunks(
inputs: string[],
assets: Asset[],
unnamed 2?: CreateChunkOptions,
): Promise<Chunk[]>
createSource(
input: string,
unnamed 3?: { reload?: boolean; importMap?: ImportMap; },
)
optimizeBundle(chunk: Chunk, bundle: Bundle)