sbt-js-engine
sbt-js-engine copied to clipboard
support parameter flags for Node
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.
Seems like the --harmony flag isn't really needed since all the ES6 features are now available in node. Starting with sbt-js-engine 1.3.0 newer node version are supported (via node engine). I keep the ticket open however, just in case someone still needs that flag in future, please let us know.
BTW, some links:
- https://stackoverflow.com/a/62467712/810109
- https://mail.mozilla.org/pipermail/es-discuss/2008-August/006837.html
- https://nodejs.org/en/docs/es6
- https://node.green/