lvarayut / relay-fullstack

:point_up::running: Modern Relay Starter Kit - Integrated with Relay, GraphQL, Express, ES6/ES7, JSX, Webpack, Babel, Material Design Lite, and PostCSS
https://lvarayut.github.io/relay-fullstack/
MIT License
985 stars 126 forks source link

Production should not use babel-node #47

Closed ugiacoman closed 8 years ago

ugiacoman commented 8 years ago

Source: Babel CLI Documentation

babel-node not meant for production use

You should not be using babel-node in production. It is unnecessarily heavy, with high memory usage due to the cache being stored in memory. You will also always experience a startup performance penalty as the entire app needs to be compiled on the fly.

Research that may help: https://medium.com/@Cuadraman/how-to-use-babel-for-production-5b95e7323c2f#.vg3mo8a5m

This is on my TODO list.

lvarayut commented 8 years ago

Thanks @ugiacoman for reporting this issue. Any PR will be very welcomed.

arnif commented 8 years ago

Here is my solution: #48