From 55b7e530ddcd9fe7e40159b8d496f9a17aa60e1e Mon Sep 17 00:00:00 2001 From: Jonathan Felchlin Date: Tue, 1 Oct 2019 14:52:24 -0700 Subject: [PATCH] Account for browserslist environment variables --- packages/react-dev-utils/browsersHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-dev-utils/browsersHelper.js b/packages/react-dev-utils/browsersHelper.js index a52ed342736..fdfa6ff3175 100644 --- a/packages/react-dev-utils/browsersHelper.js +++ b/packages/react-dev-utils/browsersHelper.js @@ -42,7 +42,7 @@ function shouldSetBrowsers(isInteractive) { } function checkBrowsers(dir, isInteractive, retry = true) { - const current = browserslist.findConfig(dir); + const current = browserslist.loadConfig({path: dir}); if (current != null) { return Promise.resolve(current); }