express-mongoose-es6-rest-api icon indicating copy to clipboard operation
express-mongoose-es6-rest-api copied to clipboard

Maybe use babel-cli will be better

Open ouzhou opened this issue 8 years ago • 3 comments
trafficstars

i think use babel-node is better than gulp-babel

here are my package.json image

ouzhou avatar Dec 19 '16 03:12 ouzhou

You should explain why. A "maybe" wouldn't be enough for me to change my project.

simonschllng avatar Dec 19 '16 08:12 simonschllng

Babel-node can run es6 or es7 directly. When the file changes, gulp will compile es6 to es5 and copy to dist, but it is really necessary?

ouzhou avatar Dec 19 '16 10:12 ouzhou

A major reason - performance. Current watch gulp task has poor performance, to be easy noticed when your project grows.

myovchev avatar Apr 25 '17 20:04 myovchev