dvdzkwsk / react-redux-starter-kit

Get started with React, Redux, and React-Router.
MIT License
10.29k stars 2.2k forks source link

babel-node in prod #957

Closed amatiushenko closed 8 years ago

amatiushenko commented 8 years ago

How come we can run the server without babel-node? Because in docs they don't recommend use babel-node in production mode

dvdzkwsk commented 8 years ago

It's not worth it for small apps to pre-compile the server, you're just not going to notice a difference. I'd love to get rid of Babel altogether on the server, but it's unfortunately needed for Koa v2 at the moment (though this is pushing me back toward express, despite Koa's improvements). If you'd like to adhere strictly to Babel's recommendations you're welcome to add a compile step.

There are a few threads about this already, so going to close as a duplicate.

amatiushenko commented 8 years ago

Ok. Thanks for quick reply!