import { Bundlee } from "https://deno.land/x/bundlee@0.9.3/mod.ts";
Methods
private
bundleFiles(basePath: string, fileList: string[]): Promise<Record<string, Metadata>>Bundle files into a single JSON object.
private
getContentType(filePath: string): stringprivate
recursiveReaddir(path: string, extensionFilter?: string[]): Promise<string[]>Recursively read a directory and return a list of files.
Bundle files from a directory into a single JSON object.
has(filePath: string): boolean
Checks if a file exists in a JSON bundle.
import(fileUrl: string, importType?: "import" | "fetch" | "local")
Imports a bundle JSON file.
Used by the load()-factory
importAsModule(fileUrl: string)
Imports a bundle JSON file using the import()
function.
importLocal(fileUrl: string)
Imports a bundle JSON file from the local filesystem.
importRemote(fileUrl: string)
Imports a bundle JSON file using the fetch()
function.
preloadCache(): Promise<void>
Preloads the cache with all the files in the bundle.