Remove unneeded param from buildRootConfig.

This commit is contained in:
Logan Smyth 2018-02-06 22:35:02 -08:00
parent ec2e0b664a
commit 85174b6ce1
2 changed files with 1 additions and 2 deletions

View File

@ -108,7 +108,6 @@ const loadPresetOverridesEnvDescriptors = makeWeakCache(
* Build a config chain for Babel's full root configuration.
*/
export function buildRootChain(
cwd: string,
opts: ValidatedOptions,
context: ConfigContext,
): ConfigChain | null {

View File

@ -62,7 +62,7 @@ export default function loadConfig(inputOpts: mixed): ResolvedConfig | null {
envName,
};
const configChain = buildRootChain(absoluteCwd, args, context);
const configChain = buildRootChain(args, context);
if (!configChain) return null;
const optionDefaults = {};