aboutsummaryrefslogtreecommitdiff
path: root/scripts/build/build.mjs
diff options
context:
space:
mode:
authorVen <vendicated@riseup.net>2022-10-30 02:58:11 +0100
committerGitHub <noreply@github.com>2022-10-30 02:58:11 +0100
commit3af9a14a0e78be88c5a048b79187c32796c06a7c (patch)
treea7fa6601555fd03b15da5685df40c3d33cbb89bd /scripts/build/build.mjs
parent739b1e47d40d645076bb74d82355f5e45edcd84e (diff)
downloadVencord-3af9a14a0e78be88c5a048b79187c32796c06a7c.tar.gz
Vencord-3af9a14a0e78be88c5a048b79187c32796c06a7c.tar.bz2
Vencord-3af9a14a0e78be88c5a048b79187c32796c06a7c.zip
Patcher: More useful errors with code diffs (#177)
* Patcher: More useful errors with code diffs * Nicer log formatting * PluginCards: ellipsises
Diffstat (limited to 'scripts/build/build.mjs')
-rwxr-xr-xscripts/build/build.mjs9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/build/build.mjs b/scripts/build/build.mjs
index bbf8105..82264ee 100755
--- a/scripts/build/build.mjs
+++ b/scripts/build/build.mjs
@@ -19,10 +19,11 @@
import esbuild from "esbuild";
-import { commonOpts, gitHash, globPlugins, isStandalone } from "./common.mjs";
+import { commonOpts, gitHash, globPlugins, isStandalone, watch } from "./common.mjs";
const defines = {
- IS_STANDALONE: isStandalone
+ IS_STANDALONE: isStandalone,
+ IS_DEV: JSON.stringify(watch)
};
if (defines.IS_STANDALONE === "false")
// If this is a local build (not standalone), optimise
@@ -81,8 +82,8 @@ await Promise.all([
...commonOpts.plugins
],
define: {
- IS_WEB: "false",
- IS_STANDALONE: isStandalone
+ ...defines,
+ IS_WEB: false
}
}),
]).catch(err => {