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/AsyncDependenciesBlock.js | 22 ++++++++++++++++++++--
1 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/node_modules/webpack/lib/AsyncDependenciesBlock.js b/node_modules/webpack/lib/AsyncDependenciesBlock.js
index 6c5147b..da183aa 100644
--- a/node_modules/webpack/lib/AsyncDependenciesBlock.js
+++ b/node_modules/webpack/lib/AsyncDependenciesBlock.js
@@ -16,11 +16,11 @@
/** @typedef {import("./serialization/ObjectMiddleware").ObjectSerializerContext} ObjectSerializerContext */
/** @typedef {import("./util/Hash")} Hash */
-/** @typedef {(ChunkGroupOptions & { entryOptions?: EntryOptions }) | string} GroupOptions */
+/** @typedef {(ChunkGroupOptions & { entryOptions?: EntryOptions } & { circular?: boolean })} GroupOptions */
class AsyncDependenciesBlock extends DependenciesBlock {
/**
- * @param {GroupOptions | null} groupOptions options for the group
+ * @param {GroupOptions | string | null} groupOptions options for the group
* @param {(DependencyLocation | null)=} loc the line of code
* @param {(string | null)=} request the request
*/
@@ -31,9 +31,17 @@
} else if (!groupOptions) {
groupOptions = { name: undefined };
}
+ if (typeof groupOptions.circular !== "boolean") {
+ // default allow circular references
+ groupOptions.circular = true;
+ }
+ /** @type {GroupOptions} */
this.groupOptions = groupOptions;
+ /** @type {DependencyLocation | null | undefined} */
this.loc = loc;
+ /** @type {string | null | undefined} */
this.request = request;
+ /** @type {undefined | string} */
this._stringifiedGroupOptions = undefined;
}
@@ -56,6 +64,14 @@
}
/**
+ * @returns {boolean} Whether circular references are allowed
+ */
+ get circular() {
+ return Boolean(this.groupOptions.circular);
+ }
+
+ /**
+ * Updates the hash with the data contributed by this instance.
* @param {Hash} hash the hash used to track dependencies
* @param {UpdateHashContext} context context
* @returns {void}
@@ -73,6 +89,7 @@
}
/**
+ * Serializes this instance into the provided serializer context.
* @param {ObjectSerializerContext} context context
*/
serialize(context) {
@@ -84,6 +101,7 @@
}
/**
+ * Restores this instance from the provided deserializer context.
* @param {ObjectDeserializerContext} context context
*/
deserialize(context) {
--
Gitblit v1.9.3