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/javascript/BasicEvaluatedExpression.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/node_modules/webpack/lib/javascript/BasicEvaluatedExpression.js b/node_modules/webpack/lib/javascript/BasicEvaluatedExpression.js
index ef5933f..5eac144 100644
--- a/node_modules/webpack/lib/javascript/BasicEvaluatedExpression.js
+++ b/node_modules/webpack/lib/javascript/BasicEvaluatedExpression.js
@@ -185,7 +185,7 @@
}
/**
- * Gets the compile-time value of the expression
+ * As compile time value.
* @returns {undefined | null | string | number | boolean | RegExp | EXPECTED_ANY[] | bigint} the javascript value
*/
asCompileTimeValue() {
@@ -296,6 +296,7 @@
if (this.isBigInt()) return `${this.bigint}`;
if (this.isRegExp()) return `${this.regExp}`;
if (this.isArray()) {
+ /** @type {string[]} */
const array = [];
for (const item of /** @type {BasicEvaluatedExpression[]} */ (
this.items
@@ -321,6 +322,7 @@
}
/**
+ * Updates string using the provided string.
* @param {string} string value
* @returns {BasicEvaluatedExpression} basic evaluated expression
*/
@@ -446,7 +448,7 @@
}
/**
- * Adds options to a conditional expression.
+ * Adds the provided basic evaluated expression to the basic evaluated expression.
* @param {BasicEvaluatedExpression[]} options optional (consequent/alternate) expressions to be added
* @returns {this} this
*/
@@ -561,6 +563,7 @@
}
/**
+ * Returns is valid flags.
* @param {string} flags regexp flags
* @returns {boolean} is valid flags
*/
--
Gitblit v1.9.3