Skip to content

Commit

Permalink
chore: fix logic
Browse files Browse the repository at this point in the history
Co-authored-by: James George <jamesgeorge998001@gmail.com>
  • Loading branch information
anshumanv and jamesgeorge007 committed Oct 10, 2020
1 parent 5ac830b commit ea919d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/webpack-cli/lib/utils/flag-defaults.js
Expand Up @@ -16,7 +16,8 @@ const cacheDefaults = (finalConfig, parsedArgs) => {
const assignFlagDefaults = (compilerConfig, parsedArgs) => {
if (Array.isArray(compilerConfig)) {
return compilerConfig.map((config) => cacheDefaults(config, parsedArgs));
} else return cacheDefaults(compilerConfig, parsedArgs);
}
return cacheDefaults(compilerConfig, parsedArgs);
};

module.exports = assignFlagDefaults;

0 comments on commit ea919d8

Please sign in to comment.