Module

x/ultra/lib/build/deps.ts>Builder

Zero-Legacy Deno/React Suspense SSR Framework
Go to Latest
class Builder
import { Builder } from "https://dotland.deno.dev/x/ultra@v2.3.0/lib/build/deps.ts";

Constructors

new
Builder(context: BuildContext, options?: BuilderOptions)

Properties

entrypoints: Map<string, Entrypoint>
importMap: ImportMap
log: LoggerImpl

Methods

addEntrypoint(name: string, config: EntrypointConfig)
build(buildSources: FileBag): Promise<BuildResult>
compileSource(source: IFile): Promise<IFile>
copySource(source: IFile, destination?: string)
copySources(sources: FileBag, destination?: string)
gatherSources(from?: string)

Walk the root for SourceFiles

getEntrypoint(name: string)

Returns a Map with the key being the original relative path and the value being the content hashed relative path.

isCompilable(source: IFile): boolean
isHashable(source: IFile): boolean
isIgnored(source: IFile): boolean
setEntrypoints(entrypoints: BuilderEntrypoints)
toManifest(sources: FileBag, unnamed 1?: { ignore?: string[]; prefix?: string; } | undefined)