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/dependencies/HarmonyAcceptDependency.js | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/node_modules/webpack/lib/dependencies/HarmonyAcceptDependency.js b/node_modules/webpack/lib/dependencies/HarmonyAcceptDependency.js
index c6dac19..51788d9 100644
--- a/node_modules/webpack/lib/dependencies/HarmonyAcceptDependency.js
+++ b/node_modules/webpack/lib/dependencies/HarmonyAcceptDependency.js
@@ -24,6 +24,7 @@
class HarmonyAcceptDependency extends NullDependency {
/**
+ * Creates an instance of HarmonyAcceptDependency.
* @param {Range} range expression range
* @param {HarmonyAcceptImportDependency[]} dependencies import dependencies
* @param {boolean} hasCallback true, if the range wraps an existing callback
@@ -40,6 +41,7 @@
}
/**
+ * Serializes this instance into the provided serializer context.
* @param {ObjectSerializerContext} context context
*/
serialize(context) {
@@ -51,6 +53,7 @@
}
/**
+ * Restores this instance from the provided deserializer context.
* @param {ObjectDeserializerContext} context context
*/
deserialize(context) {
@@ -71,6 +74,7 @@
NullDependency.Template
) {
/**
+ * Applies the plugin by registering its hooks on the compiler.
* @param {Dependency} dependency the dependency for which the template should be applied
* @param {ReplaceSource} source the current replace source which can be modified
* @param {DependencyTemplateContext} templateContext the context object
@@ -88,6 +92,7 @@
} = templateContext;
/**
+ * Gets dependency module id.
* @param {Dependency} dependency the dependency to get module id for
* @returns {ModuleId | null} the module id or null if not found
*/
@@ -97,6 +102,7 @@
);
/**
+ * Checks whether this harmony accept dependency is related harmony import dependency.
* @param {Dependency} a the first dependency
* @param {Dependency} b the second dependency
* @returns {boolean} true if the dependencies are related
@@ -114,8 +120,11 @@
* @returns {HarmonyImportDependency[]} array of related harmony import dependencies
*/
const getHarmonyImportDependencies = (dependency) => {
+ /** @type {HarmonyImportDependency[]} */
const result = [];
+ /** @type {HarmonyImportDependency | null} */
let deferDependency = null;
+ /** @type {HarmonyImportDependency | null} */
let noDeferredDependency = null;
for (const d of module.dependencies) {
--
Gitblit v1.9.3