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

x/snel/imports/bundler.ts>Bundler

A Cybernetical framework for svelte applications in deno
Latest
class Bundler
import { Bundler } from "https://deno.land/x/snel@v0.7.1/imports/bundler.ts";

Constructors

new
Bundler(plugins: Plugin[])

Properties

logger: Logger
plugins: Plugin[]

Methods

private
createCacheFilePath(
bundleInput: string,
input: string,
cacheDirPath: string,
)
private
splitChunk(
chunk: Chunk,
context: Context,
chunkList: Item[],
allItems: Record<string, Set<DependencyType>>,
)
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: Item[],
)
createChunks(
inputs: string[],
graph: Graph,
)
createGraph(inputs: string[], 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,
)