Skip to content

Commit

Permalink
chore: improve logic
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Nov 3, 2020
1 parent b47a905 commit 5b7e063
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 @@ -179,7 +179,7 @@ const finalize = async (moduleObj, args) => {

if (configName) {
const foundConfigNames = [];
const configsToFilter = isFunctionalConfig ? configs[0] : configs;
const configsToFilter = Array.isArray[configs[0]] ? configs[0] : configs;

configs = configsToFilter.filter((options) => {
const found = configName.includes(options.name);
Expand Down

0 comments on commit 5b7e063

Please sign in to comment.