From 9bce51f651aad297ef9eb6df832bfdaf1de05d84 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 14:27:54 +0800
Subject: [PATCH] 青岛推送
---
node_modules/webpack/lib/optimize/AggressiveMergingPlugin.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/node_modules/webpack/lib/optimize/AggressiveMergingPlugin.js b/node_modules/webpack/lib/optimize/AggressiveMergingPlugin.js
index f2b7698..1bcd2d0 100644
--- a/node_modules/webpack/lib/optimize/AggressiveMergingPlugin.js
+++ b/node_modules/webpack/lib/optimize/AggressiveMergingPlugin.js
@@ -11,6 +11,7 @@
/** @typedef {import("../Compiler")} Compiler */
/**
+ * Defines the aggressive merging plugin options type used by this module.
* @typedef {object} AggressiveMergingPluginOptions
* @property {number=} minSizeReduce minimal size reduction to trigger merging
*/
@@ -19,6 +20,7 @@
class AggressiveMergingPlugin {
/**
+ * Creates an instance of AggressiveMergingPlugin.
* @param {AggressiveMergingPluginOptions=} options options object
*/
constructor(options) {
@@ -30,11 +32,12 @@
"Argument should be an options object. To use defaults, pass in nothing.\nFor more info on options, see https://webpack.js.org/plugins/"
);
}
+ /** @type {AggressiveMergingPluginOptions} */
this.options = options || {};
}
/**
- * Apply the plugin
+ * Applies the plugin by registering its hooks on the compiler.
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
@@ -50,7 +53,7 @@
},
(chunks) => {
const chunkGraph = compilation.chunkGraph;
- /** @type {{a: Chunk, b: Chunk, improvement: number}[]} */
+ /** @type {{ a: Chunk, b: Chunk, improvement: number }[]} */
const combinations = [];
for (const a of chunks) {
if (a.canBeInitial()) continue;
--
Gitblit v1.9.3