WXL
3 天以前 9bce51f651aad297ef9eb6df832bfdaf1de05d84
node_modules/webpack/lib/LibManifestPlugin.js
@@ -18,6 +18,7 @@
/** @typedef {import("./ExportsInfo").ExportInfoName} ExportInfoName */
/**
 * Defines the manifest module data type used by this module.
 * @typedef {object} ManifestModuleData
 * @property {ModuleId} id
 * @property {BuildMeta=} buildMeta
@@ -25,6 +26,7 @@
 */
/**
 * Defines the lib manifest plugin options type used by this module.
 * @typedef {object} LibManifestPluginOptions
 * @property {string=} context Context of requests in the manifest file (defaults to the webpack context).
 * @property {boolean=} entryOnly If true, only entry points will be exposed (default: true).
@@ -38,6 +40,7 @@
class LibManifestPlugin {
   /**
    * Creates an instance of LibManifestPlugin.
    * @param {LibManifestPluginOptions} options the options
    */
   constructor(options) {
@@ -45,7 +48,7 @@
   }
   /**
    * Apply the plugin
    * Applies the plugin by registering its hooks on the compiler.
    * @param {Compiler} compiler the compiler instance
    * @returns {void}
    */
@@ -55,6 +58,7 @@
         (compilation, callback) => {
            const moduleGraph = compilation.moduleGraph;
            // store used paths to detect issue and output an error. #18200
            /** @type {Set<string>} */
            const usedPaths = new Set();
            asyncLib.each(
               [...compilation.chunks],