From 2cc85c64f1c64a2dbaeae276a3e2ca8420de76b7 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期三, 22 四月 2026 18:09:58 +0800
Subject: [PATCH] 上报转运调试
---
node_modules/webpack/lib/electron/ElectronTargetPlugin.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/node_modules/webpack/lib/electron/ElectronTargetPlugin.js b/node_modules/webpack/lib/electron/ElectronTargetPlugin.js
index e8c4e84..001b728 100644
--- a/node_modules/webpack/lib/electron/ElectronTargetPlugin.js
+++ b/node_modules/webpack/lib/electron/ElectronTargetPlugin.js
@@ -8,17 +8,20 @@
const ExternalsPlugin = require("../ExternalsPlugin");
/** @typedef {import("../Compiler")} Compiler */
+/** @typedef {"main" | "preload" | "renderer"} ElectronContext */
class ElectronTargetPlugin {
/**
- * @param {"main" | "preload" | "renderer"=} context in main, preload or renderer context?
+ * Creates an instance of ElectronTargetPlugin.
+ * @param {ElectronContext=} context in main, preload or renderer context?
*/
constructor(context) {
+ /** @type {ElectronContext | undefined} */
this._context = context;
}
/**
- * Apply the plugin
+ * Applies the plugin by registering its hooks on the compiler.
* @param {Compiler} compiler the compiler instance
* @returns {void}
*/
--
Gitblit v1.9.3