From cd815aafcdb612ba873ba3736cab26756379c16c Mon Sep 17 00:00:00 2001
From: Dan Abramov <dan.abramov@gmail.com>
Date: Thu, 4 Aug 2016 19:08:20 +0100
Subject: [PATCH] Check for JS files first

---
 config/webpack.config.dev.js  | 2 +-
 config/webpack.config.prod.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js
index ba6c1926c..cba0738c2 100644
--- a/config/webpack.config.dev.js
+++ b/config/webpack.config.dev.js
@@ -32,7 +32,7 @@ module.exports = {
     publicPath: '/'
   },
   resolve: {
-    extensions: ['', '.js', '.json'],
+    extensions: ['.js', '.json', ''],
     alias: {
       // This `alias` section can be safely removed after ejection.
       // We do this because `babel-runtime` may be inside `react-scripts`,
diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js
index a4e52d765..71a381fa4 100644
--- a/config/webpack.config.prod.js
+++ b/config/webpack.config.prod.js
@@ -37,7 +37,7 @@ module.exports = {
     publicPath: publicPath
   },
   resolve: {
-    extensions: ['', '.js', '.json'],
+    extensions: ['.js', '.json', ''],
     alias: {
       // This `alias` section can be safely removed after ejection.
       // We do this because `babel-runtime` may be inside `react-scripts`,
-- 
GitLab