@web/dev-server-legacy
Version:
Plugin for legacy browsers in @web/dev-server
15 lines • 644 B
TypeScript
import { Context } from '@web/dev-server-core';
import { PolyfillsConfig, GeneratedFile } from '@web/polyfills-loader';
export interface ReturnValue {
htmlPath: string;
indexHTML: string;
inlineScripts: GeneratedFile[];
polyfills: GeneratedFile[];
}
/**
* transforms index.html, extracting any modules and import maps and adds them back
* with the appropriate polyfills, shims and a script loader so that they can be loaded
* at the right time
*/
export declare function injectPolyfillsLoader(context: Context, polyfills?: boolean | PolyfillsConfig): Promise<ReturnValue>;
//# sourceMappingURL=injectPolyfillsLoader.d.ts.map