Perform check on each member of babelrcroots.

This commit is contained in:
wtgtybhertgeghgtwtg
2018-07-24 16:57:24 -07:00
parent 26cbbb569f
commit 4346a95b88

View File

@@ -192,7 +192,7 @@ export function assertBabelrcSearch(
if (Array.isArray(value)) {
value.forEach((item, i) => {
if (!checkValidTest(value)) {
if (!checkValidTest(item)) {
throw new Error(`.${key}[${i}] must be a string/Function/RegExp.`);
}
});