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/node/NodeWatchFileSystem.js | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/node_modules/webpack/lib/node/NodeWatchFileSystem.js b/node_modules/webpack/lib/node/NodeWatchFileSystem.js
index ab86b91..3b0d644 100644
--- a/node_modules/webpack/lib/node/NodeWatchFileSystem.js
+++ b/node_modules/webpack/lib/node/NodeWatchFileSystem.js
@@ -8,6 +8,8 @@
const util = require("util");
const Watchpack = require("watchpack");
+/** @typedef {import("watchpack").TimeInfoEntries} TimeInfoEntries */
+/** @typedef {import("watchpack").WatchOptions} WatchOptions */
/** @typedef {import("../util/fs").InputFileSystem} InputFileSystem */
/** @typedef {import("../util/fs").WatchMethod} WatchMethod */
/** @typedef {import("../util/fs").Changes} Changes */
@@ -15,10 +17,13 @@
class NodeWatchFileSystem {
/**
+ * Creates an instance of NodeWatchFileSystem.
* @param {InputFileSystem} inputFileSystem input filesystem
*/
constructor(inputFileSystem) {
+ /** @type {InputFileSystem} */
this.inputFileSystem = inputFileSystem;
+ /** @type {WatchOptions} */
this.watcherOptions = {
aggregateTimeout: 0
};
@@ -65,7 +70,9 @@
}
const fetchTimeInfo = () => {
+ /** @type {TimeInfoEntries} */
const fileTimeInfoEntries = new Map();
+ /** @type {TimeInfoEntries} */
const contextTimeInfoEntries = new Map();
if (this.watcher) {
this.watcher.collectTimeInfoEntries(
@@ -78,6 +85,7 @@
this.watcher.once(
"aggregated",
/**
+ * Handles the callback logic for this hook.
* @param {Changes} changes changes
* @param {Removals} removals removals
*/
--
Gitblit v1.9.3