Skip to content

Commit 0ae1c14

Browse files
committed
fix: coerce to value
1 parent 286cebd commit 0ae1c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/rspack-cli/src/utils/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const commonOptionsForBuildAndServe = (yargs: yargs.Argv) => {
6464
alias: "d",
6565
coerce: arg => {
6666
if (arg === "true") return "eval"; // --devtool true 等价于 "eval"
67-
if (arg === "false") return undefined; // --devtool false 表示禁用
67+
if (arg === "false") return false; // --devtool false 表示禁用
6868
return arg;
6969
}
7070
}

0 commit comments

Comments
 (0)