[skip ci] Add version to /vencord-debug

This commit is contained in:
V 2023-06-16 19:07:22 +02:00
parent 662c0227eb
commit eaeb60308e
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
6 changed files with 32 additions and 22 deletions

View file

@ -19,11 +19,13 @@
import esbuild from "esbuild";
import { commonOpts, globPlugins, isStandalone, watch } from "./common.mjs";
import { commonOpts, globPlugins, isStandalone, VERSION, watch } from "./common.mjs";
const defines = {
IS_STANDALONE: isStandalone,
IS_DEV: JSON.stringify(watch)
IS_DEV: JSON.stringify(watch),
VERSION: JSON.stringify(VERSION),
BUILD_TIMESTAMP: Date.now(),
};
if (defines.IS_STANDALONE === "false")
// If this is a local build (not standalone), optimise