import { Builder } from "https://deno.land/x/mesozoic@v1.0.0-alpha.34/lib/builder.ts";
Constructors
new
Builder(context: BuildContext)Properties
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)
globToRegExp(pattern: string, options?: GlobToRegExpOptions)
isCompilable(source: IFile): boolean
isDynamicImportSpecifierIgnored(specifier: string)
isEntrypoint(source: IFile): boolean
isHashable(source: IFile): boolean
processSources(sources: FileBag, processor: (source: IFile) => Promise<IFile> | IFile)
setCompiled(paths: string[])
setDynamicImportIgnored(paths: string[])
setEntrypoints(entrypoints: BuilderEntrypoints)
setHashed(paths: string[])
setIgnored(paths: string[])
Allows ignoring certain files from the build process, they won't be copied to the build output directory, so no further processing will occur on them.
toManifest(sources: FileBag, unnamed 1?: { ignore?: string[]; prefix?: string; } | undefined)