mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-01-13 17:02:52 +08:00
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.
This commit is contained in:
2
packages/react-scripts/bin/react-scripts.js
vendored
2
packages/react-scripts/bin/react-scripts.js
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user