Skip to content

Commit

Permalink
fix: minified should not accept optional argument (#10923)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung authored and nicolo-ribaudo committed Dec 25, 2019
1 parent 0075830 commit db3c31a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-cli/src/babel/options.js
Expand Up @@ -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]",
Expand Down
@@ -0,0 +1 @@
() => 42;
@@ -0,0 +1,3 @@
{
"args": ["--out-file", "script2.js", "--no-comments", "--minified", "script.js"]
}
@@ -0,0 +1 @@
"use strict";(function(){return 42});

0 comments on commit db3c31a

Please sign in to comment.