fix: minified should not accept optional argument (#10923)
This commit is contained in:
parent
00758308ae
commit
db3c31a8af
@ -74,8 +74,8 @@ commander.option(
|
||||
booleanify,
|
||||
);
|
||||
commander.option(
|
||||
"--minified [true|false]",
|
||||
"Save as many bytes when printing.",
|
||||
"--minified",
|
||||
"Save as many bytes when printing. (false by default)",
|
||||
);
|
||||
commander.option(
|
||||
"--auxiliary-comment-before [string]",
|
||||
|
||||
1
packages/babel-cli/test/fixtures/babel/--minified/in-files/script.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--minified/in-files/script.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
() => 42;
|
||||
3
packages/babel-cli/test/fixtures/babel/--minified/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/--minified/options.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["--out-file", "script2.js", "--no-comments", "--minified", "script.js"]
|
||||
}
|
||||
1
packages/babel-cli/test/fixtures/babel/--minified/out-files/script2.js
vendored
Normal file
1
packages/babel-cli/test/fixtures/babel/--minified/out-files/script2.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
"use strict";(function(){return 42});
|
||||
Loading…
x
Reference in New Issue
Block a user