import { Plugin } from 'vite'; import { Options } from '@babel/preset-env'; declare type KnownPolyfill = typeof knownPolyfills[number]; /** Incomplete list of APIs provided by Polyfill.io */ declare const knownPolyfills: readonly ["AbortController", "AudioContext", "CSS.supports", "IntersectionObserver", "Intl", "MutationObserver", "Reflect", "ResizeObserver", "fetch", "globalThis", "queueMicrotask", "requestIdleCallback"]; /** Plugin configuration */ declare type PluginConfig = { /** Define which browsers must be supported */ targets?: Options['targets']; /** Define which polyfills to load from Polyfill.io */ polyfills?: KnownPolyfill[]; /** Use inlined `core-js@3` modules instead of Polyfill.io */ corejs?: boolean; /** Disable browserslint configuration */ ignoreBrowserslistConfig?: boolean; /** * The JS version your legacy bundle is expecting. Set this as low as possible, * but keep in mind which JS features your code needs. * * You can use https://kangax.github.io/compat-table/es2016plus/ * to know which JS version has the features your bundle needs. * * @default viteConfig.esbuild.target || "es2020" */ ecmaVersion?: string; }; declare const _default: (config?: PluginConfig) => Plugin; export default _default;