From 2cdf0cb352ab6a2d0f8cb25120e4ebc92c5316e3 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 5 Nov 2023 17:23:37 +0800 Subject: removed autoprefix hover as it will have a high chance of making hover stopped working --- .../webpack/lib/electron/ElectronTargetPlugin.js | 68 ---------------------- 1 file changed, 68 deletions(-) delete mode 100644 node_modules/webpack/lib/electron/ElectronTargetPlugin.js (limited to 'node_modules/webpack/lib/electron/ElectronTargetPlugin.js') diff --git a/node_modules/webpack/lib/electron/ElectronTargetPlugin.js b/node_modules/webpack/lib/electron/ElectronTargetPlugin.js deleted file mode 100644 index b62e4bf0..00000000 --- a/node_modules/webpack/lib/electron/ElectronTargetPlugin.js +++ /dev/null @@ -1,68 +0,0 @@ -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ - -"use strict"; - -const ExternalsPlugin = require("../ExternalsPlugin"); - -/** @typedef {import("../Compiler")} Compiler */ - -class ElectronTargetPlugin { - /** - * @param {"main" | "preload" | "renderer"=} context in main, preload or renderer context? - */ - constructor(context) { - this._context = context; - } - /** - * Apply the plugin - * @param {Compiler} compiler the compiler instance - * @returns {void} - */ - apply(compiler) { - new ExternalsPlugin("node-commonjs", [ - "clipboard", - "crash-reporter", - "electron", - "ipc", - "native-image", - "original-fs", - "screen", - "shell" - ]).apply(compiler); - switch (this._context) { - case "main": - new ExternalsPlugin("node-commonjs", [ - "app", - "auto-updater", - "browser-window", - "content-tracing", - "dialog", - "global-shortcut", - "ipc-main", - "menu", - "menu-item", - "power-monitor", - "power-save-blocker", - "protocol", - "session", - "tray", - "web-contents" - ]).apply(compiler); - break; - case "preload": - case "renderer": - new ExternalsPlugin("node-commonjs", [ - "desktop-capturer", - "ipc-renderer", - "remote", - "web-frame" - ]).apply(compiler); - break; - } - } -} - -module.exports = ElectronTargetPlugin; -- cgit v1.2.3