import { EaCPreactAppHandler } from "https://deno.land/x/fathym_eac_runtime@v0.1.53/src/utils/EaCPreactAppHandler.ts";
Constructors
new
EaCPreactAppHandler(ioc: IoCContainer,
logger: Logger,
renderHandler: PreactRenderHandler,
eacIslandsClientPath: string,
eacIslandsClientDepsPath: string,
importMap?: Record<string, string>,
options?: Partial<esbuild.BuildOptions>,
Properties
protected
denoCfg: DenoConfigprotected
dfsHandlers: Map<string, DFSFileHandler>protected
pipelines: Map<string, EaCRuntimeHandlerPipeline>Methods
protected
buildIslandsClient(processor: EaCPreactAppProcessor,
options: Partial<esbuild.BuildOptions>,
islandLibraryFiles: Record<string, string>,
importMap?: Record<string, string>,
protected
componentLoader(handlers: (EaCComponentDFSHandler | undefined)[], revision: number)protected
establishBundleHandler(processor: EaCPreactAppProcessor, bundle: esbuild.BuildResult<esbuild.BuildOptions>): voidprotected
establishPipeline(processor: EaCPreactAppProcessor, matches: PathMatch[]): voidprotected
layoutLoader(allPaths: string[],
appDFS: EaCDistributedFileSystemDetails,
appDFSLookup: string,
appDFSHandler: DFSFileHandler,
protected
loadAppDFSHandler(processor: EaCPreactAppProcessor, dfss: Record<string, EaCDistributedFileSystemAsCode>): Promise<{ DFS: EaCDistributedFileSystemDetails; Handler: DFSFileHandler; }>protected
loadCompDFS()protected
loadComponent(compPath: string,
compDFS: EaCDistributedFileSystemDetails,
compDFSLookup: string,
componentFileHandler: DFSFileHandler,
protected
loadComponentDFSHandlers(processor: EaCPreactAppProcessor, dfss: Record<string, EaCDistributedFileSystemAsCode>): Promise<(EaCComponentDFSHandler | undefined)[] | undefined>protected
loadDefaultBuildOptions(dfsLookup: string,
preserveRemotes: boolean,
extraFiles?: Record<string, string>,
relativeRoot?: string,
importMap?: Record<string, string>,
protected
loadImportMap(importMap?: Record<string, string>): Record<string, string>protected
loadPathMatches(processor: EaCPreactAppProcessor,
dfss: Record<string, EaCDistributedFileSystemAsCode>,
revision: number,
protected
middlewareLoader(allPaths: string[],
appDFS: EaCDistributedFileSystemDetails,
appDFSLookup: string,
appDFSHandler: DFSFileHandler,
protected
prependJSXParts(filePath: string, contents: string): esbuild.OnLoadResultprotected
setupCompIslandsLibrarySource(dfsLookup: string, comps: []): Promise<void>protected
setupIslandsClientSources(processor: EaCPreactAppProcessor, appDFSRoot: string): Promise<void>Build(): Promise<void>
processor: EaCPreactAppProcessor,
importMap?: Record<string, string>,
options?: Partial<esbuild.BuildOptions>,
Configure(): Promise<void>
processor: EaCPreactAppProcessor,
dfss: Record<string, EaCDistributedFileSystemAsCode>,
revision: number,
LoadFetchFile(args: esbuild.OnLoadArgs): Promise<esbuild.OnLoadResult | null>
LoadVirtualFile(args: esbuild.OnLoadArgs, files: Record<string, string>): esbuild.OnLoadResult | null
ResolveImportMapFile(): Promise<esbuild.OnResolveResult | null>
build: () => esbuild.PluginBuild,
args: esbuild.OnResolveArgs,
preserveRemotes: boolean,
importMap?: Record<string, string>,
ResolveRelativeFile(): esbuild.OnResolveResult | null
args: esbuild.OnResolveArgs,
preserveRemotes: boolean,
relativeRoot?: string,
ResolveRemoteFile(args: esbuild.OnResolveArgs, preserveRemotes: boolean): esbuild.OnResolveResult | null
ResolveSpecifierFile(build: () => esbuild.PluginBuild, args: esbuild.OnResolveArgs): Promise<esbuild.OnResolveResult | null>
ResolveVirtualFile(args: esbuild.OnResolveArgs, files: Record<string, string>): esbuild.OnResolveResult | null
Static Methods
ConfigurePlugin(): esbuild.Plugin
builder: EaCPreactAppHandler,
files: Record<string, string>,
preserveRemotes: boolean,
relativeRoot?: string,
importMap?: Record<string, string>,