javascript - Convert es6 to es5 using babel then Bundle with Browserify -


im using es6 feature import , classes , understand browser doesn't support import feature , read here. need convert es6 code es5 , , after need bundle them using browserify or gulp, webpack, browserify, etc. question going that: code changes everytime , want check results , need repeat of procedure everytime before want see results?

yes, every time change need rebuild unfortunately. take @ watchify or more complex projects might consider using grunt or other task runner automate process.

// first install watchify, babelify , babel-preset-es2015 watchify script.js -o bundle.js -t [ babelify --presets [ es2015 ] ] 

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -