Skip to content

Commit

Permalink
perf: reduce one if judgment (#14329)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 authored Sep 8, 2023
1 parent 19bf0f1 commit 09ba7c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/vite/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,7 @@ export function resolveBuildOptions(
// normalize false string into actual false
if ((resolved.minify as string) === 'false') {
resolved.minify = false
}

if (resolved.minify === true) {
} else if (resolved.minify === true) {
resolved.minify = 'esbuild'
}

Expand Down

0 comments on commit 09ba7c6

Please sign in to comment.