class Application implements ServerApplicationRe-exportimport { Application } from "https://deno.land/x/aleph@v0.3.0-alpha.32/server/mod.ts"; The application class for aleph server. ConstructorsnewApplication(workingDir?,mode?: "development" | "production",reload?,)PropertiesreadonlybuildDir: stringreadonlycommonCompileOptions: TransformOptionscommon compiler options readonlyconfig: RequiredConfigreadonlyimportMap: ImportMapreadonlyisDevreadonlyloadersreadonlymode: "development" | "production"readonlyready: Promise<void>readonlyworkingDir: stringMethodsprivateapplyCompilationSideEffect(url: string, callback: (mod: Module) => void)apply compilation side-effect caused by dependency graph breaking. privatebundle()create bundle chunks for production. privatecompile(url: string, options?: { sourceCode?: string; ignoreCache?: boolean; once?: boolean; }): Promise<Module>compile a moudle by given url, then cache on the disk. each moudle only be compiled once unless you set the ignoreCache option to true. privatecreateRouteUpdate(url: string): [string, string, { isIndex?: boolean; useDeno?: boolean; }]privateinit(reload: boolean)initiate application privateisScopedModule(url: string)check the changed file whether it is a scoped module privateisSSRable(pathname: string): booleancheck a page whether is able to SSR. privatelookupDeps(url: string,callback: (dep: DependencyDescriptor) => false | void,__tracing?: Set<string>,)lookup deps recurively. privatessg()render all pages in routing. privateupdateImportUrls(jsContent: string,dep: DependencyDescriptor,external: boolean,)update the hash in import url of deps. privatewatch()watch file changes, re-compile modules and send HMR signal. addDist(path: string, content: Uint8Array): Promise<void>add a dist. addModule(url: string, options?: { sourceCode?: string; }): Promise<void>add a new page module by given path and source code. build()build the application to a static site(SSG) createFSWatcher(): EventEmittercreate a fs watcher. fetchModule(url: string): Promise<{ content: Uint8Array; contentType: string | null; }>fetch module content findModuleByName(name: string): Module | nullfind the module by given name. getAPIRoute(location: { pathname: string; search?: string; }): [RouterURL, Module] | nullget api route by given location. getCodeInjects(phase: "compilation" | "hmr" | "ssr")get code injects getMainJS(bundleMode?): stringget main code in javascript. getModule(url: string): Module | nullget the module by given url. getPageHTML(loc: { pathname: string; search?: string; }): Promise<[number, string]>get ssr page getPageRoute(location: { pathname: string; search?: string; }): [RouterURL, RouteModule[]]get page route by given location. getSSRData(loc: { pathname: string; search?: string; }): Promise<any>get ssr data getSSRHTMLScripts(entryFile?: string)get ssr html scripts injectCode(stage: "compilation" | "hmr" | "ssr", transform: TransformFn): voidinject code injectHMRCode(unnamed 0: Module, content: string): stringinject HMR code isHMRable(url: string)check the module whether it is hmrable. loadModule(url: string): Promise<{ code: string; type: SourceType; isStyle: boolean; external: boolean; map?: string; }>lookupStyleModules(...urls: string[]): Module[]lookup style deps of given modules. parseModuleExportNames(url: string): Promise<string[]>parse the export names of the module. removeFSWatcher(e: EventEmitter)remove the fs watcher.