production?
"scripts":{
"build": "babel --presets es2015 src -d dist",
"start": "babel-node --presets es2015 src/main.js",
"start-prod": "node dist/main.js"
},
start instead of start-prod or it is slow?
don't use babel-node in production
It will if course be slower to start up and consume more memory due to having to have Babel loaded, but I had no noticable issues transpiling on startup with live script
Why exactly do you need Babel on server?
Обсуждают сегодня