From 888f941ae16c850c0f1a844ec9436058840920bd Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期五, 24 四月 2026 09:19:02 +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