Skip to content

ES Modules support with clientlibs #13

Closed Answered by cshawaus
jamesg1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jamesg1,

Apologies for the very belated reply. As part of the installation process, there is a step to switch your current ClientLib HTL use attribute over to the AEM Vite ClientLib handler.

https://www.aemvite.dev/guide/backend/installation/#configure-clientlibs

Of course, this is not always optimal but you can copy the files from /apps/aem-vite/granite/sightly/templates into your project folder and extend https://github.com/aem-vite/aem-vite/blob/main/core/src/main/java/dev/aemvite/aem/utilities/ClientLibUseObject.java.

This should play nicely with Versioned ClientLibs as it executes before the rewriter.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jamesg1
Comment options

Answer selected by cshawaus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants