export interface PreloadLink {
href: string;
as?: 'script' | 'style' | 'font' | 'image' | 'fetch';
crossorigin?: 'anonymous' | 'use-credentials';
integrity?: string;
rel?: 'preload' | 'modulepreload' | 'prefetch';
type?: string;
}
export declare function buildPreloadTags(links: PreloadLink[]): string;
export interface RemoteEntryPreloadOptions {
/**
* Module format of the remote container.
* - 'classic' (default) — ``. Matches the
* default Module Federation container, which is a classic global script.
* - 'esm' — ``. Use only when remotes ship as ESM
* containers (Module Federation 2 with `library.type: 'module'`).
*/
format?: 'classic' | 'esm';
}
export declare function remoteEntryPreloads(remotes: Array<{
name: string;
entryUrl: string;
integrity?: string;
}>, opts?: RemoteEntryPreloadOptions): PreloadLink[];
//# sourceMappingURL=preload.d.ts.map