From a13c0df1cdab5476b21aa8c0ec04f3778fe21e11 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 7 Nov 2022 21:29:31 +0100 Subject: build: Add metadata header to all bundles --- scripts/build/build.mjs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'scripts/build/build.mjs') diff --git a/scripts/build/build.mjs b/scripts/build/build.mjs index 82264ee..3d43269 100755 --- a/scripts/build/build.mjs +++ b/scripts/build/build.mjs @@ -19,7 +19,7 @@ import esbuild from "esbuild"; -import { commonOpts, gitHash, globPlugins, isStandalone, watch } from "./common.mjs"; +import { commonOpts, globPlugins, isStandalone, watch } from "./common.mjs"; const defines = { IS_STANDALONE: isStandalone, @@ -30,12 +30,6 @@ if (defines.IS_STANDALONE === "false") // for the specific platform we're on defines["process.platform"] = JSON.stringify(process.platform); -const header = ` -// Vencord ${gitHash} -// Standalone: ${defines.IS_STANDALONE} -// Platform: ${defines["process.platform"] || "Universal"} -`.trim(); - /** * @type {esbuild.BuildOptions} */ @@ -48,9 +42,6 @@ const nodeCommonOpts = { bundle: true, external: ["electron", ...commonOpts.external], define: defines, - banner: { - js: header - } }; await Promise.all([ -- cgit