import { Builder } from "https://deno.land/x/mesozoic@v1.0.0-alpha.31/mod.ts";
Constructors
new
Builder(context: BuildContext)Properties
importMap: ImportMap
Methods
build(sources: FileBag): Promise<BuildResult>
compileSource(source: IFile): Promise<IFile>
compileSources(sources: FileBag)
copySource(source: IFile, destination?: string)
copySources(sources: FileBag, destination?: string)
gatherSources(from?: string)
Walk the root for SourceFiles obeying exclusion patterns
getEntrypoint(path: string)
isCompilable(source: IFile): boolean
isDynamicImportSpecifierExcluded(specifier: string)
isEntrypoint(source: IFile): boolean
isExcluded(source: IFile): boolean
isHashable(source: IFile): boolean
processSources(sources: FileBag, processor: (source: IFile) => Promise<IFile> | IFile)
setCompiled(paths: string[])
setDynamicImportExcluded(paths: string[])
setEntrypoints(entrypoints: BuilderEntrypoints)
setExcluded(paths: string[])
Allows excluding certain files from the build process, they won't be copied to the build output directory, so no further processing will occur on them.
setHashed(paths: string[])
toManifest(sources: FileBag, unnamed 1?: { exclude?: string[]; prefix?: string; } | undefined)