Search code examples
node.jsgulpecmascript-6ecmascript-harmony

How to run gulp with --harmony flag?


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?


Solution

  • A simpler solution would be to use harmonize : https://github.com/dcodeIO/node-harmonize

    Just install harmonize and then require like so: require("harmonize")();