Expand my Community achievements bar.

SOLVED

ES6 to ES5 compiler in AEM

Avatar

Level 2

Does anyone know a bundle/plugin for compiling ES6 to ES5 in AEM? Something that will work like the existing Adobe Granite UI Clientlibs - Less Compiler.

Our team is using React in our project and is using Babel to compile ES6/JSX files to ES5. What is your usual workflow for this?

Regards

1 Accepted Solution

Avatar

Correct answer by
Employee
4 Replies

Avatar

Level 10

I have passed this question to support to see if there are some support KBs. This is not a common AEM request and there is no docs or community articles on this use case. 

Avatar

Level 2

Thank you, those JS files are actually being used on the front-end, but it makes sense to use it as well on the backend similar to how the Social Component Frameworks is created (via HandleBars)

Avatar

Correct answer by
Employee

You can try babel.

The following article may be helpful:

https://blog.dniccumdesign.com/adding-babel-support-to-an-aem-instance/