UNPKG

@web/polyfills-loader

Version:

Generate loader for loading browser polyfills based on feature detection

9 lines 632 B
import { Element } from 'parse5'; import { FileType, PolyfillsLoaderConfig } from './types.js'; export declare const noModuleSupportTest = "!('noModule' in HTMLScriptElement.prototype)"; export declare const fileTypes: Record<'SCRIPT' | 'MODULE' | 'MODULESHIM' | 'SYSTEMJS', FileType>; export declare function createContentHash(content: string): string; export declare function cleanImportPath(importPath: string): string; export declare function getScriptFileType(script: Element): FileType; export declare function hasFileOfType(cfg: PolyfillsLoaderConfig, type: FileType): boolean | undefined; //# sourceMappingURL=utils.d.ts.map