diff --git a/scripts/build/build.mjs b/scripts/build/build.mjs index b6338fd8..22a7495a 100644 --- a/scripts/build/build.mjs +++ b/scripts/build/build.mjs @@ -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, diff --git a/scripts/build/common.mjs b/scripts/build/common.mjs index dd5fac89..9c140d3a 100644 --- a/scripts/build/common.mjs +++ b/scripts/build/common.mjs @@ -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);