Adobe-Marketing-Cloud / aem-guides-wknd-events

Step by Step guide to creating a Single Page Application to use with AEM
48 stars 34 forks source link

[React] Code Splitting #52

Closed GR1ML0CK closed 5 years ago

GR1ML0CK commented 5 years ago

Based on the guide, aem-clientlib-generator is used to convert the react bundles into AEM clientlibs. This seems to make code splitting not work since all the files get grouped into a single clientlib. Is there a way to still support code splitting to support cases where you might have components that are only for certain kinds of pages?

godanny86 commented 5 years ago

hi @GR1ML0CK, great question. With the current capabilities of AEM clientlibs I do not believe this is possible. Do you mind re-posting this under https://github.com/adobe/aem-spa-project-archetype/issues

I think adding this as a feature in the archetype would be a good enhancement.