From a73252f06f4fce747e94e60e2d5ce5282a62ef73 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kiho=20=C2=B7=20Cham?= <monkindey@163.com>
Date: Wed, 2 Aug 2017 09:04:25 +0800
Subject: [PATCH] Use modern syntax feature (#2873)

The create-react-app need node >= 6, and node version 6 support a lot of ES6, and let's switch using '+' to concat string with template string.
---
 packages/react-scripts/bin/react-scripts.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/react-scripts/bin/react-scripts.js b/packages/react-scripts/bin/react-scripts.js
index cb52fe71b..abb2741f8 100755
--- a/packages/react-scripts/bin/react-scripts.js
+++ b/packages/react-scripts/bin/react-scripts.js
@@ -21,7 +21,7 @@ switch (script) {
   case 'test': {
     const result = spawn.sync(
       'node',
-      [require.resolve('../scripts/' + script)].concat(args),
+      [require.resolve(`../scripts/${script}`)].concat(args),
       { stdio: 'inherit' }
     );
     if (result.signal) {
-- 
GitLab