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 621af89 commit 57f28c8Copy full SHA for 57f28c8
1 file changed
packages/webpack-cli/src/webpack-cli.ts
@@ -624,7 +624,7 @@ class WebpackCLI {
624
}
625
626
if (options.options) {
627
- let commandOptions: CommandOption[] = [];
+ let commandOptions: CommandOption[];
628
629
if (typeof options.options === "function") {
630
if (
@@ -644,6 +644,8 @@ class WebpackCLI {
644
} else {
645
commandOptions = await options.options(command);
646
647
+ } else {
648
+ commandOptions = options.options;
649
650
651
for (const option of commandOptions) {
0 commit comments