Fix: config lookup logic in babel-core (#5550)
This fixes a bug that was causing the config lookup to stop when a package.json file was found even if it did not contain a "babel" key.
This commit is contained in:
@@ -163,7 +163,7 @@ class ConfigChainBuilder {
|
||||
this.errorMultipleConfigs(arr.pop(), config);
|
||||
}
|
||||
|
||||
arr.push(config);
|
||||
if (configAdded) arr.push(config);
|
||||
}
|
||||
|
||||
return arr;
|
||||
|
||||
Reference in New Issue
Block a user