Skip to content

Commit

Permalink
tests: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanv committed Nov 3, 2020
1 parent 0c28bd5 commit 10e6426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-cli/lib/utils/flag-defaults.js
Expand Up @@ -2,7 +2,7 @@ const cacheDefaults = (finalConfig, parsedArgs, outputOptions) => {
// eslint-disable-next-line no-prototype-builtins
const hasCache = finalConfig.hasOwnProperty('cache');
let cacheConfig = {};
if (hasCache && (parsedArgs.config || outputOptions.defaultConfig)) {
if (hasCache && (parsedArgs.config || (outputOptions && outputOptions.defaultConfig))) {
if (finalConfig.cache && finalConfig.cache.type === 'filesystem') {
cacheConfig.buildDependencies = {
config: parsedArgs.config || [outputOptions.defaultConfig],
Expand Down

0 comments on commit 10e6426

Please sign in to comment.