From a875a61decf55047cc4b7abde3cd97ef20a048fd Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Mon, 13 Jul 2020 19:08:45 +0530 Subject: [PATCH] fix: do not fallback to base config --- packages/webpack-cli/lib/groups/ConfigGroup.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/webpack-cli/lib/groups/ConfigGroup.js b/packages/webpack-cli/lib/groups/ConfigGroup.js index 09a48bcb9e5..b4750e01333 100644 --- a/packages/webpack-cli/lib/groups/ConfigGroup.js +++ b/packages/webpack-cli/lib/groups/ConfigGroup.js @@ -170,7 +170,7 @@ class ConfigGroup extends GroupHelper { if (Object.keys(this.args).some((arg) => arg === 'merge')) { const { merge } = this.args; - // Try to resolve the given merge config else fallback to `webpack.base.js` + // try resolving merge config const newConfigPath = this.resolveFilePath(merge); if (!newConfigPath) { @@ -179,13 +179,6 @@ class ConfigGroup extends GroupHelper { } const configFiles = getConfigInfoFromFileName(newConfigPath); - if (!configFiles.length) { - this.opts.processingMessageBuffer.push({ - lvl: 'warn', - msg: 'Could not find file to merge configuration with...', - }); - return; - } const foundConfig = configFiles[0]; const resolvedConfig = this.requireConfig(foundConfig); const newConfigurationsObject = await this.finalize(resolvedConfig);