WXL
3 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/RecordIdsPlugin.js
@@ -13,6 +13,7 @@
/** @typedef {import("./Module")} Module */
/**
 * Defines the records chunks type used by this module.
 * @typedef {object} RecordsChunks
 * @property {Record<string, number>=} byName
 * @property {Record<string, number>=} bySource
@@ -20,18 +21,21 @@
 */
/**
 * Defines the records modules type used by this module.
 * @typedef {object} RecordsModules
 * @property {Record<string, number>=} byIdentifier
 * @property {number[]=} usedIds
 */
/**
 * Defines the records type used by this module.
 * @typedef {object} Records
 * @property {RecordsChunks=} chunks
 * @property {RecordsModules=} modules
 */
/**
 * Defines the record ids plugin options type used by this module.
 * @typedef {object} RecordIdsPluginOptions
 * @property {boolean=} portableIds true, when ids need to be portable
 */
@@ -42,6 +46,7 @@
class RecordIdsPlugin {
   /**
    * Creates an instance of RecordIdsPlugin.
    * @param {RecordIdsPluginOptions=} options object
    */
   constructor(options) {
@@ -49,6 +54,7 @@
   }
   /**
    * Applies the plugin by registering its hooks on the compiler.
    * @param {Compiler} compiler the Compiler
    * @returns {void}
    */
@@ -62,6 +68,7 @@
         );
      /**
       * Gets module identifier.
       * @param {Module} module the module
       * @returns {string} the (portable) identifier
       */
@@ -113,6 +120,7 @@
         /** @typedef {string[]} ChunkSources */
         /**
          * Gets chunk sources.
          * @param {Chunk} chunk the chunk
          * @returns {ChunkSources} sources of the chunk
          */