WXL
4 天以前 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7
node_modules/webpack/lib/cache/MemoryWithGcCachePlugin.js
@@ -12,6 +12,7 @@
/** @typedef {import("../Compiler")} Compiler */
/**
 * Defines the memory with gc cache plugin options type used by this module.
 * @typedef {object} MemoryWithGcCachePluginOptions
 * @property {number} maxGenerations max generations
 */
@@ -20,6 +21,7 @@
class MemoryWithGcCachePlugin {
   /**
    * Creates an instance of MemoryWithGcCachePlugin.
    * @param {MemoryWithGcCachePluginOptions} options options
    */
   constructor({ maxGenerations }) {
@@ -27,7 +29,7 @@
   }
   /**
    * Apply the plugin
    * Applies the plugin by registering its hooks on the compiler.
    * @param {Compiler} compiler the compiler instance
    * @returns {void}
    */
@@ -43,6 +45,7 @@
      compiler.hooks.afterDone.tap(PLUGIN_NAME, () => {
         generation++;
         let clearedEntries = 0;
         /** @type {undefined | string} */
         let lastClearedIdentifier;
         // Avoid coverage problems due indirect changes
         /* istanbul ignore next */