| | |
| | | } |
| | | configFile = compiler.readConfigFile(configFilePath, compiler.sys.readFile); |
| | | if (configFile.error !== undefined) { |
| | | configFileError = utils_1.formatErrors([configFile.error], loaderOptions, colors, compiler, { file: configFilePath }, loader.context)[0]; |
| | | configFileError = (0, utils_1.formatErrors)([configFile.error], loaderOptions, colors, compiler, { file: configFilePath }, loader.context)[0]; |
| | | } |
| | | } |
| | | else { |
| | |
| | | } |
| | | } |
| | | function getConfigParseResult(compiler, configFile, basePath, configFilePath, loaderOptions) { |
| | | const configParseResult = compiler.parseJsonConfigFileContent(configFile.config, Object.assign(Object.assign({}, compiler.sys), { useCaseSensitiveFileNames: utils_1.useCaseSensitiveFileNames(compiler, loaderOptions) }), basePath, getCompilerOptionsToExtend(compiler, loaderOptions, basePath, configFilePath || 'tsconfig.json')); |
| | | const configParseResult = compiler.parseJsonConfigFileContent(configFile.config, Object.assign(Object.assign({}, compiler.sys), { useCaseSensitiveFileNames: (0, utils_1.useCaseSensitiveFileNames)(compiler, loaderOptions) }), basePath, getCompilerOptionsToExtend(compiler, loaderOptions, basePath, configFilePath || 'tsconfig.json')); |
| | | if (!loaderOptions.projectReferences) { |
| | | configParseResult.projectReferences = undefined; |
| | | } |
| | |
| | | exports.getConfigParseResult = getConfigParseResult; |
| | | const extendedConfigCache = new Map(); |
| | | function getParsedCommandLine(compiler, loaderOptions, configFilePath) { |
| | | const result = compiler.getParsedCommandLineOfConfigFile(configFilePath, getCompilerOptionsToExtend(compiler, loaderOptions, path.dirname(configFilePath), configFilePath), Object.assign(Object.assign({}, compiler.sys), { useCaseSensitiveFileNames: utils_1.useCaseSensitiveFileNames(compiler, loaderOptions), |
| | | const result = compiler.getParsedCommandLineOfConfigFile(configFilePath, getCompilerOptionsToExtend(compiler, loaderOptions, path.dirname(configFilePath), configFilePath), Object.assign(Object.assign({}, compiler.sys), { useCaseSensitiveFileNames: (0, utils_1.useCaseSensitiveFileNames)(compiler, loaderOptions), |
| | | // eslint-disable-next-line @typescript-eslint/no-empty-function |
| | | onUnRecoverableConfigFileDiagnostic: () => { } }), extendedConfigCache); |
| | | if (result) { |
| | | result.options = compilerSetup_1.getCompilerOptions(result, compiler); |
| | | result.options = (0, compilerSetup_1.getCompilerOptions)(result, compiler); |
| | | } |
| | | return result; |
| | | } |