Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
file = require.resolve(file)
}
catch (ignore) {
file = require.resolve("electron-webpack/electron-builder.yml")
}
config.extends = `file:${file}`
}
}
let parentConfig: Configuration | null
if (config.extends === "react-cra") {
parentConfig = await reactCra(projectDir)
log.info({preset: config.extends}, "loaded parent configuration")
}
else if (config.extends != null) {
const parentConfigAndEffectiveFile = await loadParentConfig(configRequest, config.extends)
log.info({file: parentConfigAndEffectiveFile.configFile}, "loaded parent configuration")
parentConfig = parentConfigAndEffectiveFile.result
}
else {
parentConfig = null
}
return doMergeConfigs(config, parentConfig)
}