Skip to content

Commit 82c4c57

Browse files
Simplify parallel build flag evaluation
Use direct boolean check to reduce verbosity without changing behavior.
1 parent f8371fd commit 82c4c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const outdir = 'build'
1414
const __dirname = path.resolve()
1515
const isProduction = process.argv[2] !== '--development' // --production and --analyze are both production
1616
const isAnalyzing = process.argv[2] === '--analyze'
17-
const parallelBuild = process.env.BUILD_PARALLEL === '0' ? false : true
17+
const parallelBuild = process.env.BUILD_PARALLEL !== '0'
1818
const isWatchOnce = !!process.env.BUILD_WATCH_ONCE
1919
// Cache compression control: default none; allow override via env
2020
const cacheCompressionEnv = process.env.BUILD_CACHE_COMPRESSION

0 commit comments

Comments
 (0)