securityos/node_modules/next/dist/build/webpack/plugins/memory-with-gc-cache-plugin...

13 lines
517 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import type { Compiler } from 'next/dist/compiled/webpack/webpack';
export declare class MemoryWithGcCachePlugin {
/**
* Maximum number of compilations to keep the cache entry around for when it's not used.
* We keep the modules for a few more compilations so that if you comment out a package and bring it back it doesn't need a full compile again.
*/
private maxGenerations;
constructor({ maxGenerations }: {
maxGenerations: number;
});
apply(compiler: Compiler): void;
}