From a5a2cc808920ad7b02cc032b6adbfa126da09773 Mon Sep 17 00:00:00 2001 From: Yves Date: Mon, 10 Oct 2022 12:10:47 -0400 Subject: [PATCH] Raise an error when config file is specified but not found --- src/config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config.ts b/src/config.ts index 6720b2909..3ce93b624 100644 --- a/src/config.ts +++ b/src/config.ts @@ -50,6 +50,10 @@ export function getConfigFile( )[0]; } } else { + if (loaderOptions.configFile !== undefined) { + configFileError = new Error(`Cannot find '${loaderOptions.configFile }' in folder '${path.dirname(loader.resourcePath)}'`); + } + if (compilerCompatible) { log.logInfo(compilerDetailsLogMessage); }