@visulima/packem
Version:
A fast and modern bundler for Node.js and TypeScript.
13 lines (12 loc) • 400 B
text/typescript
import type { Plugin } from "rollup";
import type FileCache from "../../utils/file-cache.d.mts";
/**
* 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 default cachingPlugin;