Aem UI Module Development

Build, structure, and register frontend JavaScript modules for AEM components using Vite and the DOM-driven Registry pattern (Island Architecture). Covers the transition away from HTL-injected script tags (`<sly>`) to a `MutationObserver`-driven global entry point (`app.ts`), dynamic module loading (`registry.ts`), and safe memory management (`WeakMap` and `AbortController`). Use when creating or refactoring frontend JS for AEM, handling DOM event bindings, ensuring AEM authoring drag-and-drop compatibility, or optimizing Vite chunking and bundle sizes. Also activate when the user mentions data-ui-module, top-level side effects, UI teardown, or AEM frontend performance.

headwirecom 9a3eb00 7.9 KB Updated

File contents

headwirecom/aem-agent-skills/tree/main/skills/aem-ui-module-development commit 9a3eb00532

Frequently asked questions

npx skillmds@latest add headwirecom/aem-ui-module-development