The same could be achieved in node.js using --harmony
flag like this:
node --harmony app.js
So it will be add support for EcmaScript6.
How to run gulp commands with harmony flag?
A simpler solution would be to use harmonize : https://github.com/dcodeIO/node-harmonize
Just install harmonize and then require like so:
require("harmonize")();