UNPKG

unplugin-purge-polyfills

Version:

A tiny plugin to replace package imports with better native code.

22 lines (18 loc) 791 B
import * as unplugin from 'unplugin'; declare const defaultPolyfills: Record<string, Record<string, string>>; interface PurgePolyfillsOptions { sourcemap?: boolean; replacements?: Record<string, false | Record<string, string>>; logLevel?: 'quiet' | 'verbose'; mode?: 'load' | 'transform'; /** * An array of patterns to match source files against when running in `transform` mode * @default [/\.[cm][tj]sx?$/] */ include?: Array<string | RegExp>; /** An array of patterns to exclude source files when running in `transform` mode */ exclude?: Array<string | RegExp>; } declare const purgePolyfills: unplugin.UnpluginInstance<PurgePolyfillsOptions, boolean>; export { defaultPolyfills, purgePolyfills }; export type { PurgePolyfillsOptions };