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/dependencies/AMDDefineDependency.js | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/node_modules/webpack/lib/dependencies/AMDDefineDependency.js b/node_modules/webpack/lib/dependencies/AMDDefineDependency.js
index 4acb152..de5d1a4 100644
--- a/node_modules/webpack/lib/dependencies/AMDDefineDependency.js
+++ b/node_modules/webpack/lib/dependencies/AMDDefineDependency.js
@@ -10,6 +10,7 @@
const NullDependency = require("./NullDependency");
/** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */
+/** @typedef {import("./LocalModule")} LocalModule */
/** @typedef {import("../Dependency")} Dependency */
/** @typedef {import("../DependencyTemplate").DependencyTemplateContext} DependencyTemplateContext */
/** @typedef {import("../javascript/JavascriptParser").Range} Range */
@@ -107,6 +108,7 @@
class AMDDefineDependency extends NullDependency {
/**
+ * Creates an instance of AMDDefineDependency.
* @param {Range} range range
* @param {Range | null} arrayRange array range
* @param {Range | null} functionRange function range
@@ -120,6 +122,7 @@
this.functionRange = functionRange;
this.objectRange = objectRange;
this.namedModule = namedModule;
+ /** @type {LocalModule | null} */
this.localModule = null;
}
@@ -128,6 +131,7 @@
}
/**
+ * Serializes this instance into the provided serializer context.
* @param {ObjectSerializerContext} context context
*/
serialize(context) {
@@ -142,6 +146,7 @@
}
/**
+ * Restores this instance from the provided deserializer context.
* @param {ObjectDeserializerContext} context context
*/
deserialize(context) {
@@ -165,6 +170,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
@@ -181,8 +187,9 @@
}
/**
+ * Returns variable name.
* @param {AMDDefineDependency} dependency dependency
- * @returns {string} variable name
+ * @returns {string | false | null} variable name
*/
localModuleVar(dependency) {
return (
@@ -193,6 +200,7 @@
}
/**
+ * Returns branch.
* @param {AMDDefineDependency} dependency dependency
* @returns {string} branch
*/
@@ -205,6 +213,7 @@
}
/**
+ * Processes the provided dependency.
* @param {AMDDefineDependency} dependency dependency
* @param {ReplaceSource} source source
* @param {string} definition definition
--
Gitblit v1.9.3