@web/polyfills-loader
Version:
Generate loader for loading browser polyfills based on feature detection
11 lines • 473 B
TypeScript
import { PolyfillsLoaderConfig, GeneratedFile } from './types.js';
export interface InjectPolyfillsLoaderResult {
htmlString: string;
polyfillFiles: GeneratedFile[];
}
/**
* Transforms an index.html file, injecting a polyfills loader for
* compatibility with older browsers.
*/
export declare function injectPolyfillsLoader(htmlString: string, cfg: PolyfillsLoaderConfig): Promise<InjectPolyfillsLoaderResult>;
//# sourceMappingURL=injectPolyfillsLoader.d.ts.map