While attempting to write a plugin for ng-annotate I discovered that the JS file requires ES6 support. Node supports many ES6 features with the --harmony flag. Based on the documented configuration options there doesn't currently appear to be a way to pass any configuration flags to the node command.
As more people adopt ES6 features the need for this flag is likely to become a more common occurrence.
While attempting to write a plugin for ng-annotate I discovered that the JS file requires ES6 support. Node supports many ES6 features with the --harmony flag. Based on the documented configuration options there doesn't currently appear to be a way to pass any configuration flags to the node command.
As more people adopt ES6 features the need for this flag is likely to become a more common occurrence.