Skip to content

Commit

Permalink
refactor: code
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Nov 3, 2020
1 parent 163972f commit b804b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-cli/lib/groups/resolveConfig.js
Expand Up @@ -214,7 +214,7 @@ const finalize = async (moduleObj, args) => {
process.exit(2);
}

newOptionsObject['options'] = Array.isArray(configs) && configs.length > 1 ? configs : configs[0];
newOptionsObject['options'] = configs.length > 1 ? configs : configs[0];

return newOptionsObject;
};
Expand Down

0 comments on commit b804b34

Please sign in to comment.