ucbuilder
Version:
:Shree Ganeshay Namah: new way app design
17 lines (16 loc) • 682 B
TypeScript
export type BrowserConfig = {
importmap?: Record<string, string>;
globalAlias?: Record<string, string>;
};
export type ProjectEntry = {
rootPath: string;
projectName: string;
browser: BrowserConfig;
};
export declare function ensureHead(): HTMLHeadElement;
export declare function scanAllProjects(mainRoot?: string): Promise<ProjectEntry[]>;
export declare function createImportMap(htmlPath: string, projects: ProjectEntry[], baseDir?: string): {
scopes: Record<string, Record<string, string>>;
};
export declare function injectImportMap(html: string, importMap: any): string;
export declare function generateImportMap(mainProjectDir: string): Promise<any>;