From 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期二, 21 四月 2026 11:46:41 +0800
Subject: [PATCH] 推送
---
node_modules/webpack/lib/library/JsonpLibraryPlugin.js | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/node_modules/webpack/lib/library/JsonpLibraryPlugin.js b/node_modules/webpack/lib/library/JsonpLibraryPlugin.js
index 4102e83..f42edc5 100644
--- a/node_modules/webpack/lib/library/JsonpLibraryPlugin.js
+++ b/node_modules/webpack/lib/library/JsonpLibraryPlugin.js
@@ -17,26 +17,31 @@
/** @typedef {import("../util/Hash")} Hash */
/**
+ * Defines the shared type used by this module.
* @template T
* @typedef {import("./AbstractLibraryPlugin").LibraryContext<T>} LibraryContext<T>
*/
/**
+ * Defines the jsonp library plugin options type used by this module.
* @typedef {object} JsonpLibraryPluginOptions
* @property {LibraryType} type
*/
/**
+ * Defines the jsonp library plugin parsed type used by this module.
* @typedef {object} JsonpLibraryPluginParsed
* @property {string} name
*/
/**
+ * Represents the jsonp library plugin runtime component.
* @typedef {JsonpLibraryPluginParsed} T
* @extends {AbstractLibraryPlugin<JsonpLibraryPluginParsed>}
*/
class JsonpLibraryPlugin extends AbstractLibraryPlugin {
/**
+ * Creates an instance of JsonpLibraryPlugin.
* @param {JsonpLibraryPluginOptions} options the plugin options
*/
constructor(options) {
@@ -47,8 +52,9 @@
}
/**
+ * Returns preprocess as needed by overriding.
* @param {LibraryOptions} library normalized library option
- * @returns {T | false} preprocess as needed by overriding
+ * @returns {T} preprocess as needed by overriding
*/
parseOptions(library) {
const { name } = library;
@@ -64,6 +70,7 @@
}
/**
+ * Returns source with library export.
* @param {Source} source source
* @param {RenderContext} renderContext render context
* @param {LibraryContext<T>} libraryContext context
@@ -77,6 +84,7 @@
}
/**
+ * Processes the provided chunk.
* @param {Chunk} chunk the chunk
* @param {Hash} hash hash
* @param {ChunkHashContext} chunkHashContext chunk hash context
--
Gitblit v1.9.3