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/library/EnableLibraryPlugin.js | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/node_modules/webpack/lib/library/EnableLibraryPlugin.js b/node_modules/webpack/lib/library/EnableLibraryPlugin.js
index 0349ed5..1d98180 100644
--- a/node_modules/webpack/lib/library/EnableLibraryPlugin.js
+++ b/node_modules/webpack/lib/library/EnableLibraryPlugin.js
@@ -14,17 +14,20 @@
const enabledTypes = new WeakMap();
/**
+ * Defines the enable library plugin options type used by this module.
* @typedef {object} EnableLibraryPluginOptions
* @property {() => void=} additionalApply function that runs when applying the current plugin.
*/
/**
+ * Returns enabled types.
* @param {Compiler} compiler the compiler instance
* @returns {LibraryTypes} enabled types
*/
const getEnabledTypes = (compiler) => {
let set = enabledTypes.get(compiler);
if (set === undefined) {
+ /** @type {LibraryTypes} */
set = new Set();
enabledTypes.set(compiler, set);
}
@@ -33,6 +36,7 @@
class EnableLibraryPlugin {
/**
+ * Creates an instance of EnableLibraryPlugin.
* @param {LibraryType} type library type that should be available
* @param {EnableLibraryPluginOptions} options options of EnableLibraryPlugin
*/
@@ -44,6 +48,7 @@
}
/**
+ * Updates enabled using the provided compiler.
* @param {Compiler} compiler the compiler instance
* @param {LibraryType} type type of library
* @returns {void}
@@ -53,6 +58,7 @@
}
/**
+ * Checks enabled.
* @param {Compiler} compiler the compiler instance
* @param {LibraryType} type type of library
* @returns {void}
@@ -70,7 +76,7 @@
}
/**
- * Apply the plugin
+ * Applies the plugin by registering its hooks on the compiler.
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
@@ -236,6 +242,7 @@
class WarnFalseIifeUmdPlugin {
/**
+ * Applies the plugin by registering its hooks on the compiler.
* @param {Compiler} compiler the compiler instance
*/
apply(compiler) {
--
Gitblit v1.9.3