Files
scrap/node_modules/next/dist/build/webpack/plugins/memory-with-gc-cache-plugin.d.ts
2024-09-24 03:52:46 +00:00

13 lines
517 B
TypeScript

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;
}