JavaScript in Custom Backend Controls and TypeScript Compiling
summary
A TYPO3 extension implements a backend image-map form control that loads its JavaScript only when the form element appears by using TYPO3 resources/public/javascript path mapping and AMD module names like Typo3/CMS/imagenmap/element.js with require(...). The build pipeline uses gulp and TypeScript (tsc 5) with an AMD-target tsconfig to compile per-file TypeScript projects into single output files. The approach reduces frontend payload, provides stronger typing to avoid monkey-patching, and yields a usable editor image-map control.
AI-written summary · about
