We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 286cebd commit 0ae1c14Copy full SHA for 0ae1c14
packages/rspack-cli/src/utils/options.ts
@@ -64,7 +64,7 @@ export const commonOptionsForBuildAndServe = (yargs: yargs.Argv) => {
64
alias: "d",
65
coerce: arg => {
66
if (arg === "true") return "eval"; // --devtool true 等价于 "eval"
67
- if (arg === "false") return undefined; // --devtool false 表示禁用
+ if (arg === "false") return false; // --devtool false 表示禁用
68
return arg;
69
}
70
0 commit comments