npm - Babel CLI is extremely slow -


so follow installation here, babel takes long time compile, small files:

app.js

let app = 1; 

.babelrc

{ "presets": ["es2015"] } 

package.json

"scripts": {     "build": "babel app.js -o dist/app.js" }, "devdependencies": {     "babel-cli": "^6.4.5",     "babel-preset-es2015": "^6.3.13" } 

then npm run build take ~30s compile.

i'm using npm@3.3.12

you might accidently tried compile node_modules , bower_components.

please write in 'ignore' statement in .babelrc. value ignore should '/(node_modules|bower_components)/'.

hope solves issue


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -