From 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期二, 21 四月 2026 11:46:41 +0800
Subject: [PATCH] 推送

---
 node_modules/webpack/hot/lazy-compilation-web.js |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/node_modules/webpack/hot/lazy-compilation-web.js b/node_modules/webpack/hot/lazy-compilation-web.js
index ec8253f..04c26bb 100644
--- a/node_modules/webpack/hot/lazy-compilation-web.js
+++ b/node_modules/webpack/hot/lazy-compilation-web.js
@@ -1,6 +1,6 @@
-/* global __resourceQuery */
-
 "use strict";
+
+/* global __resourceQuery */
 
 if (typeof EventSource !== "function") {
 	throw new Error(
@@ -54,15 +54,18 @@
 exports.keepAlive = function (options) {
 	var data = options.data;
 	var onError = options.onError;
-	var active = options.active;
-	var module = options.module;
+
 	errorHandlers.add(onError);
+
 	var value = activeKeys.get(data) || 0;
+
 	activeKeys.set(data, value + 1);
+
 	if (value === 0) {
 		updateEventSource();
 	}
-	if (!active && !module.hot) {
+
+	if (!options.active && !options.module.hot) {
 		console.log(
 			"Hot Module Replacement is not enabled. Waiting for process restart..."
 		);
@@ -81,3 +84,10 @@
 		}, 1000);
 	};
 };
+
+/**
+ * @param {string} value new url value
+ */
+exports.setUrl = function (value) {
+	urlBase = value;
+};

--
Gitblit v1.9.3