Fix Equibop Missing Plugins

This commit is contained in:
thororen1234 2024-11-06 01:55:57 -05:00
parent b6e6a429ec
commit 74417ea268
2 changed files with 5 additions and 6 deletions

View file

@ -216,7 +216,7 @@ await Promise.all([
...nodeCommonOpts,
entryPoints: [join(dirname(fileURLToPath(import.meta.url)), "../../src/main/index.ts")],
outfile: "dist/equibop/main.js",
footer: { js: "//# sourceURL=EquicordMain\n" + sourceMapFooter("main") },
footer: { js: "//# sourceURL=VencordMain\n" + sourceMapFooter("main") },
sourcemap,
define: {
...defines,
@ -235,12 +235,11 @@ await Promise.all([
outfile: "dist/equibop/renderer.js",
format: "iife",
target: ["esnext"],
footer: { js: "//# sourceURL=EquicordRenderer\n" + sourceMapFooter("renderer") },
footer: { js: "//# sourceURL=VencordRenderer\n" + sourceMapFooter("renderer") },
globalName: "Vencord",
sourcemap,
plugins: [
globPlugins("equicordDesktop"),
globPlugins("vencordDesktop"),
...commonOpts.plugins
],
define: {
@ -254,7 +253,7 @@ await Promise.all([
...nodeCommonOpts,
entryPoints: [join(dirname(fileURLToPath(import.meta.url)), "../../src/preload.ts")],
outfile: "dist/equibop/preload.js",
footer: { js: "//# sourceURL=EquicordPreload\n" + sourceMapFooter("preload") },
footer: { js: "//# sourceURL=VencordPreload\n" + sourceMapFooter("preload") },
sourcemap,
define: {
...defines,

View file

@ -140,8 +140,8 @@ export const globPlugins = kind => ({
(target === "web" && kind === "discordDesktop") ||
(target === "desktop" && kind === "web") ||
(target === "discordDesktop" && kind !== "discordDesktop") ||
(target === "vencordDesktop" && kind !== "vencordDesktop") ||
(target === "equicordDesktop" && kind !== "equicordDesktop");
(target === "vencordDesktop" && kind !== "vencordDesktop" && kind !== "equicordDesktop") ||
(target === "equicordDesktop" && kind !== "equicordDesktop" && kind !== "vencordDesktop");
if (excluded) {
const name = await resolvePluginName(fullDir, file);