Skip to content

Commit

Permalink
refactor: code
Browse files Browse the repository at this point in the history
Co-authored-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
snitin315 and andersk committed Nov 3, 2020
1 parent b804b34 commit ccc5b37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/webpack-cli/lib/groups/resolveConfig.js
Expand Up @@ -175,13 +175,13 @@ const finalize = async (moduleObj, args) => {
return rawConfig;
}),
).then((allConfigs) => {
allConfigs.map((singleConfig) => {
for (const singleConfig of allConfigs) {
if (Array.isArray(singleConfig)) {
singleConfig.map((conf) => configs.push(conf));
configs.push(...singleConfig);
} else {
configs.push(singleConfig);
}
});
}
});

if (configName) {
Expand Down

0 comments on commit ccc5b37

Please sign in to comment.