Opened 5 years ago

Last modified 5 years ago

#19020 new defect

EcmaScript 6 support

Reported by: paulrutter Owned by:
Priority: undecided Milestone: tbd
Component: General Version: 1.12.1
Keywords: Cc:
Blocked By: Blocking:


I recently upgraded to 1.12.1 because i saw that the Closure compiler was upgraded to a version that supports ES6. The documentation also seems to suggest that ES6 syntax is supported.

Even when following this guide, ES6 syntax keeps failing in the build process. Error:

"error(307) Failed to evaluate module tagged as pure AMD (fell back to processing with regular expressions). module: mywidget/service; error: SyntaxError?: syntax error"

I would expect the following ES6 syntax to be accepted:

  ["a","b","c"].map((material) => {
    return material.length;

Could you please clarify if ES6 is supported from 1.12.1 and up? If so, can you give an example on how the build profile should be configured in order to make it work?

Thanks in advance!

Change History (2)

comment:1 Changed 5 years ago by dylan

The goal was to support it, and basic testing looked like things would be fine, but unfortunately it has not gone as smoothly as we had hoped with Closure Compiler to date.

We have a few issues open on this, but we've not had much time yet to look into this further unfortunately.

comment:2 Changed 5 years ago by paulrutter

Hmm that's too bad. Thanks for your reply though.

Note: See TracTickets for help on using tickets.