MCPcopy
hub / github.com/rollup/rollup / getTrackedPluginCache

Function getTrackedPluginCache

src/utils/PluginCache.ts:28–47  ·  view source on GitHub ↗
(pluginCache: PluginCache, onUse: () => void)

Source from the content-addressed store, hash-verified

26}
27
28export function getTrackedPluginCache(pluginCache: PluginCache, onUse: () => void): PluginCache {
29 return {
30 delete(id: string) {
31 onUse();
32 return pluginCache.delete(id);
33 },
34 get(id: string) {
35 onUse();
36 return pluginCache.get(id);
37 },
38 has(id: string) {
39 onUse();
40 return pluginCache.has(id);
41 },
42 set(id: string, value: any) {
43 onUse();
44 return pluginCache.set(id, value);
45 }
46 };
47}
48
49export const NO_CACHE: PluginCache = {
50 delete() {

Callers 1

transformFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…