Skip to content

Commit

Permalink
chore: add --dev to build flags
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmDevs committed Oct 26, 2024
1 parent e987723 commit e3ba7f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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",
Expand Down

0 comments on commit e3ba7f4

Please sign in to comment.