| | |
| | | /** @typedef {import("./ExportsInfo").ExportInfoName} ExportInfoName */ |
| | | |
| | | /** |
| | | * Defines the manifest module data type used by this module. |
| | | * @typedef {object} ManifestModuleData |
| | | * @property {ModuleId} id |
| | | * @property {BuildMeta=} buildMeta |
| | |
| | | */ |
| | | |
| | | /** |
| | | * 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). |
| | |
| | | |
| | | class LibManifestPlugin { |
| | | /** |
| | | * Creates an instance of LibManifestPlugin. |
| | | * @param {LibManifestPluginOptions} options the options |
| | | */ |
| | | constructor(options) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Apply the plugin |
| | | * Applies the plugin by registering its hooks on the compiler. |
| | | * @param {Compiler} compiler the compiler instance |
| | | * @returns {void} |
| | | */ |
| | |
| | | (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], |