UNPKG

rasengan

Version:

The modern React Framework

39 lines (38 loc) 1.07 kB
interface ManifestEntry { file?: string; name: string; imports?: string[]; dynamicImports?: string[]; css?: string[]; isDynamicEntry?: boolean; isEntry?: boolean; src?: string; } interface ResolvedAssets { scripts: string[]; styles: string[]; } export declare class ManifestManager { private _manifestPath; private _manifest; private _entry; constructor(manifestPath: string); /** * Load the manifest file. */ private loadManifest; /** * Resolve all assets for a given page. * @param source - The file path of the page to resolve. * @returns Resolved assets with scripts and styles. */ resolveAssets(source: string): ResolvedAssets; /** * Generate meta tags for a given page. * @param source - The file path of the page to generate meta tags for. * @returns HTML string containing script and style tags. */ generateMetaTags(source: string): import("react/jsx-runtime").JSX.Element[]; findEntry(source: string): ManifestEntry; } export {};