UNPKG

465 BTypeScriptView Raw
1import { Plugin } from 'rollup';
2/**
3 * rollup-plugin-catch-fetch
4 *
5 * How it works: NPM packages will sometimes contain Node.js-specific polyfills
6 * for the native browser Fetch API. Since this makes no sense in an ESM web
7 * project, we can replace these expensive polyfills with native references to
8 * the fetch API.
9 *
10 * This still allows you to polyfill fetch in older browsers, if you desire.
11 */
12export declare function rollupPluginCatchFetch(): Plugin;