transformUtils.d.ts 442 B

1234
  1. import { IndexHtmlTransform } from '../transform';
  2. export declare function asyncReplace(input: string, re: RegExp, replacer: (match: RegExpExecArray) => string | Promise<string>): Promise<string>;
  3. export declare function injectScriptToHtml(html: string, script: string): string;
  4. export declare function transformIndexHtml(html: string, transforms: IndexHtmlTransform[] | undefined, apply: 'pre' | 'post', isBuild?: boolean): Promise<string>;