You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's do what I suggested there for global CLI too, and move all the code except the Node version check into a separate file that would be lazily required. This way we can use modern syntax there without screwing up the version check message.
(packages/react-scripts) switch normal functions to arrow
(packages/react-scripts) switch var to const
(packages/create-react-app) split into two scripts - index.js with node version check that should be available for node 0.12 and create-react-app.js (suggest your script name) with modern syntax that is required from index.js after node version check
Activity
gaearon commentedon Mar 6, 2017
Let's do what I suggested there for global CLI too, and move all the code except the Node version check into a separate file that would be lazily required. This way we can use modern syntax there without screwing up the version check message.
tuchk4 commentedon Mar 6, 2017
vartoconstindex.jswith node version check that should be available for node 0.12 andcreate-react-app.js(suggest your script name) with modern syntax that is required fromindex.jsafter node version checkcorrect?
gaearon commentedon Mar 6, 2017
Yes, although I'd only switch to arrows where it helps readability. I'd leave top level functions as named declarations.