From 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 18:09:58 +0800
Subject: [PATCH] 上报转运调试
---
node_modules/webpack/lib/MainTemplate.js | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/node_modules/webpack/lib/MainTemplate.js b/node_modules/webpack/lib/MainTemplate.js
index c18f504..645799c 100644
--- a/node_modules/webpack/lib/MainTemplate.js
+++ b/node_modules/webpack/lib/MainTemplate.js
@@ -26,6 +26,7 @@
/** @typedef {import("./TemplatedPathPlugin").TemplatePath} TemplatePath */
/** @typedef {import("./TemplatedPathPlugin").PathData} PathData */
/**
+ * Defines the if set type used by this module.
* @template T
* @typedef {import("tapable").IfSet<T>} IfSet
*/
@@ -43,6 +44,7 @@
// TODO webpack 6 remove this class
class MainTemplate {
/**
+ * Creates an instance of MainTemplate.
* @param {OutputOptions} outputOptions output options for the MainTemplate
* @param {Compilation} compilation the compilation
*/
@@ -53,6 +55,7 @@
renderManifest: {
tap: util.deprecate(
/**
+ * Handles the callback logic for this hook.
* @template AdditionalOptions
* @param {string | Tap & IfSet<AdditionalOptions>} options options
* @param {(renderManifestEntries: RenderManifestEntry[], renderManifestOptions: RenderManifestOptions) => RenderManifestEntry[]} fn fn
@@ -87,6 +90,7 @@
require: {
tap: util.deprecate(
/**
+ * Handles the callback logic for this hook.
* @template AdditionalOptions
* @param {string | Tap & IfSet<AdditionalOptions>} options options
* @param {(value: string, renderBootstrapContext: RenderBootstrapContext) => string} fn fn
@@ -124,6 +128,7 @@
render: {
tap: util.deprecate(
/**
+ * Handles the callback logic for this hook.
* @template AdditionalOptions
* @param {string | Tap & IfSet<AdditionalOptions>} options options
* @param {(source: Source, chunk: Chunk, hash: string | undefined, moduleTemplate: ModuleTemplate, dependencyTemplates: DependencyTemplates) => Source} fn fn
@@ -156,6 +161,7 @@
renderWithEntry: {
tap: util.deprecate(
/**
+ * Handles the callback logic for this hook.
* @template AdditionalOptions
* @param {string | Tap & IfSet<AdditionalOptions>} options options
* @param {(source: Source, chunk: Chunk, hash: string | undefined) => Source} fn fn
@@ -182,6 +188,7 @@
assetPath: {
tap: util.deprecate(
/**
+ * Handles the callback logic for this hook.
* @template AdditionalOptions
* @param {string | Tap & IfSet<AdditionalOptions>} options options
* @param {(value: string, path: PathData, assetInfo: AssetInfo | undefined) => string} fn fn
@@ -194,6 +201,7 @@
),
call: util.deprecate(
/**
+ * Handles the call callback for this hook.
* @param {TemplatePath} filename used to get asset path with hash
* @param {PathData} options context data
* @returns {string} interpolated path
@@ -206,6 +214,7 @@
hash: {
tap: util.deprecate(
/**
+ * Handles the callback logic for this hook.
* @template AdditionalOptions
* @param {string | Tap & IfSet<AdditionalOptions>} options options
* @param {(hash: Hash) => void} fn fn
@@ -220,6 +229,7 @@
hashForChunk: {
tap: util.deprecate(
/**
+ * Handles the callback logic for this hook.
* @template AdditionalOptions
* @param {string | Tap & IfSet<AdditionalOptions>} options options
* @param {(hash: Hash, chunk: Chunk) => void} fn fn
@@ -295,6 +305,7 @@
this.renderCurrentHashCode = util.deprecate(
/**
+ * Handles the require ensure callback for this hook.
* @deprecated
* @param {string} hash the hash
* @param {number=} length length of the hash
@@ -314,6 +325,7 @@
this.getPublicPath = util.deprecate(
/**
+ * Handles the callback logic for this hook.
* @param {PathData} options context data
* @returns {string} interpolated path
*/ (options) =>
@@ -324,6 +336,7 @@
this.getAssetPath = util.deprecate(
/**
+ * Handles the callback logic for this hook.
* @param {TemplatePath} path used to get asset path with hash
* @param {PathData} options context data
* @returns {string} interpolated path
@@ -335,6 +348,7 @@
this.getAssetPathWithInfo = util.deprecate(
/**
+ * Handles the callback logic for this hook.
* @param {TemplatePath} path used to get asset path with hash
* @param {PathData} options context data
* @returns {InterpolatedPathAndAssetInfo} interpolated path and asset info
@@ -357,6 +371,7 @@
Object.defineProperty(MainTemplate.prototype, "outputOptions", {
get: util.deprecate(
/**
+ * Returns output options.
* @this {MainTemplate}
* @returns {OutputOptions} output options
*/
--
Gitblit v1.9.3