@visulima/packem
Version:
A fast and modern bundler for Node.js and TypeScript.
14 lines (12 loc) • 394 B
TypeScript
import type { Plugin } from "rollup";
import type FileCache from "../../utils/file-cache.d.ts";
/**
* Wrap a Rollup plugin to add caching to various hooks.
*
* @param {Plugin} plugin
* @param {FileCache} cache
* @param {string} subDirectory
* @returns {Plugin}
*/
declare const cachingPlugin: (plugin: Plugin, cache: FileCache, subDirectory?: string) => Plugin;
export = cachingPlugin;