Hi,
I have an ES6 compliant JS file, which I am trying to include in my Jira Plugin. unfortunately, when i run atlas-package the following error occurs.
[INFO] --- maven-amps-plugin:6.3.1:compress-resources (default-compress-resources) @ risk-management ---
[INFO] Compiling javascript using YUI
[ERROR] syntax error
AJS.toInit($ => {
[ERROR] Compilation produced 1 syntax errors.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.311 s
[INFO] Finished at: 2017-06-08T14:44:42+01:00
[INFO] Final Memory: 39M/300M
[INFO] ------------------------------------------------------------------------
I tried to insert this Code snippet in the Chrome console and it just works like a charm. Is there a way to use ES6 or do i have to use the old ways of JS?