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/IgnoreWarningsPlugin.js | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/node_modules/webpack/lib/IgnoreWarningsPlugin.js b/node_modules/webpack/lib/IgnoreWarningsPlugin.js
index de5fd35..22a27f5 100644
--- a/node_modules/webpack/lib/IgnoreWarningsPlugin.js
+++ b/node_modules/webpack/lib/IgnoreWarningsPlugin.js
@@ -5,21 +5,25 @@
"use strict";
-/** @typedef {import("../declarations/WebpackOptions").IgnoreWarningsNormalized} IgnoreWarningsNormalized */
/** @typedef {import("./Compiler")} Compiler */
+/** @typedef {import("./Compilation")} Compilation */
+
+/** @typedef {(warning: Error, compilation: Compilation) => boolean} IgnoreFn */
const PLUGIN_NAME = "IgnoreWarningsPlugin";
class IgnoreWarningsPlugin {
/**
- * @param {IgnoreWarningsNormalized} ignoreWarnings conditions to ignore warnings
+ * Creates an instance of IgnoreWarningsPlugin.
+ * @param {IgnoreFn[]} ignoreWarnings conditions to ignore warnings
*/
constructor(ignoreWarnings) {
+ /** @type {IgnoreFn[]} */
this._ignoreWarnings = ignoreWarnings;
}
/**
- * Apply the plugin
+ * Applies the plugin by registering its hooks on the compiler.
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
--
Gitblit v1.9.3