From e3ba7f4caa8d280e4840ef40ab1159630a5bff45 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Sun, 27 Oct 2024 00:08:26 +0700 Subject: [PATCH] chore: add `--dev` to build flags --- scripts/build.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/build.mjs b/scripts/build.mjs index 47b35136..091e69a0 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -20,7 +20,8 @@ const metroDeps = await (async () => { const args = yargs(process.argv.slice(2)); const { "release-branch": releaseBranch, - "build-minify": buildMinify + "build-minify": buildMinify, + "dev": dev } = args; let context = null; @@ -44,7 +45,7 @@ const config = { ".png": "dataurl" }, define: { - __DEV__: JSON.stringify(releaseBranch !== "main") + __DEV__: dev ?? JSON.stringify(releaseBranch !== "main") }, inject: ["./shims/asyncIteratorSymbol.js", "./shims/promiseAllSettled.js"], legalComments: "none",